Files
DinQuant/quantdinger_vue/Dockerfile
T
TIANHE f0a5af595d fix: Fix indicator parameter configuration and Docker build issues
- Fix indicator parameter values being reset after modification in indicator-analysis page
- Fix Docker build nginx image pull failure (use specific version tag)
- Add Docker build scripts (PowerShell and Bash versions)
- Revert call_indicator feature (temporarily removed to avoid affecting existing indicator execution)
2026-02-13 02:33:00 +08:00

33 lines
634 B
Docker

# QuantDinger Frontend Dockerfile
# Stage 1: Build
FROM node:18-alpine as builder
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies (prefer npm)
RUN npm install --legacy-peer-deps
# Copy source code
COPY . .
# Build production version
RUN npm run build
# Stage 2: Production image (using nginx)
# Use specific version to avoid mirror registry issues
FROM nginx:1.25-alpine
# Copy build artifacts
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY deploy/nginx-docker.conf /etc/nginx/conf.d/default.conf
# Expose port
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]