Wordle/Dockerfile
2025-07-22 11:28:06 -04:00

21 lines
331 B
Docker

# Step 1: Build the app
FROM node:20-alpine as builder
WORKDIR /app
COPY . .
RUN npm install && npm run build
# Step 2: Serve it with Nginx
FROM nginx:alpine
# Remove default content
RUN rm -rf /usr/share/nginx/html/*
# Copy built files from the previous stage
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80