add all frontend files

This commit is contained in:
2026-01-17 15:16:36 -05:00
parent ff16ae7858
commit e40287e4aa
25704 changed files with 1935289 additions and 0 deletions

34
Dockerfile.prod Normal file
View File

@@ -0,0 +1,34 @@
# --- STAGE 1: Build the Vue application ---
FROM node:20.11.1 AS builder
WORKDIR /app
COPY package.json ./
# --- THE FIX IS HERE ---
# 1. Install ALL dependencies (including devDependencies like vue-tsc)
RUN npm install
# 2. Copy the appropriate .env file for production environment
COPY .env.prod .env
# 3. Copy the rest of your source code
COPY . .
# 3. Now run the build, which will succeed because vue-tsc is installed
RUN npm run build
# --- STAGE 2: Serve the built files with Nginx ---
FROM nginx:stable-alpine
# Copy the static files from the 'builder' stage
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy your custom Nginx configuration
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
# Tell the world that port 80 is now listening
EXPOSE 80
# Start Nginx when the container launches
CMD ["nginx", "-g", "daemon off;"]