first commit

This commit is contained in:
2025-06-23 13:25:24 +00:00
commit f58610cbfc
234 changed files with 199128 additions and 0 deletions

25
app/dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# Stage 1: Build
FROM node:18 AS builder
WORKDIR /app
COPY . .
# Install dependencies with legacy peer deps to avoid version conflicts
RUN npm install --legacy-peer-deps && npm install -g vite && npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
# Remove default nginx static files
RUN rm -rf /usr/share/nginx/html/*
# Copy built files from builder
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy custom Nginx config if needed
# COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]