File size: 535 Bytes
4f163ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# Build stage
FROM node:18-alpine AS build
# Set working directory
WORKDIR /app
# Copy package files
COPY client/package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY client/ ./
# Build the app
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built app to nginx
COPY --from=build /app/build /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/nginx.conf
# Expose port
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]
# rebuild trigger 2025-09-02T05:59:28Z
|