diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c7b529 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# 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 +