Files
flowsint/flowsint-app/Dockerfile
2025-10-24 10:25:48 +02:00

28 lines
471 B
Docker

# Build stage
FROM node:20 AS builder
WORKDIR /app
# Copy package files and install dependencies
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
# Type check and build
RUN npm run typecheck
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built files to nginx
COPY --from=builder /app/dist /usr/share/nginx/html
# Copy nginx configuration
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]