refactor deployment config and exchange integrations
Simplify runtime configuration and remove legacy database and settings surface so new installs are easier to operate. Refresh deployment assets, docs, and order execution behavior to keep the packaged app aligned with the current backend. Made-with: Cursor
This commit is contained in:
+6
-24
@@ -1,31 +1,13 @@
|
||||
# QuantDinger Frontend — multi-stage build
|
||||
# QuantDinger Frontend — static runtime image
|
||||
# Build context: repository root (see docker-compose.yml)
|
||||
#
|
||||
# Stage 1: compile Vue app from QuantDinger-Vue-src
|
||||
# Stage 2: nginx static + API reverse proxy (nginx.conf)
|
||||
# The open-source repo ships prebuilt static assets in `frontend/dist`,
|
||||
# so no Node.js build stage is required.
|
||||
ARG RUNTIME_IMAGE=nginx:1.25-alpine
|
||||
FROM ${RUNTIME_IMAGE}
|
||||
|
||||
FROM node:18-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Layer cache: deps only
|
||||
COPY QuantDinger-Vue-src/package.json QuantDinger-Vue-src/package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY QuantDinger-Vue-src/ ./
|
||||
|
||||
# Match local production build (`npm run build` in QuantDinger-Vue-src)
|
||||
ENV NODE_OPTIONS=--max_old_space_size=4096
|
||||
RUN npm run build
|
||||
|
||||
# --- runtime ---
|
||||
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
# curl: docker-compose healthcheck
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html/
|
||||
COPY frontend/dist/ /usr/share/nginx/html/
|
||||
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user