test commit-2

This commit is contained in:
2025-06-19 07:23:53 +00:00
parent 9e9641ab5c
commit b754af0080
267 changed files with 39 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 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;"]

Some files were not shown because too many files have changed in this diff Show More