feat: add RegisterResult component, ESLint config, and vue.config.js for project setup
- Created a new RegisterResult.vue component for displaying registration success. - Added ESLint configuration for unit tests in the tests directory. - Implemented vue.config.js for webpack configuration, including theme color support and proxy settings for development.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
# 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;"]
|
||||
Reference in New Issue
Block a user