2026-03-21 18:32:04 +08:00
|
|
|
# QuantDinger Frontend — static runtime image
|
2026-03-20 21:08:26 +08:00
|
|
|
# Build context: repository root (see docker-compose.yml)
|
2026-03-21 18:32:04 +08:00
|
|
|
# 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}
|
2026-03-20 21:08:26 +08:00
|
|
|
|
|
|
|
|
RUN apk add --no-cache curl
|
2026-02-27 19:57:23 +08:00
|
|
|
|
2026-03-21 18:32:04 +08:00
|
|
|
COPY frontend/dist/ /usr/share/nginx/html/
|
2026-03-20 21:08:26 +08:00
|
|
|
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
2026-02-27 19:57:23 +08:00
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|