Add files via upload

This commit is contained in:
Joas A Santos
2026-01-19 19:22:35 -03:00
committed by GitHub
parent 5a8a1fc0d7
commit bdd6c91f50
5 changed files with 301 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY frontend/package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY frontend/ ./
# Build the application
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built assets
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]