From c68e6c9303685636252150b1a01cd33cd6bea697 Mon Sep 17 00:00:00 2001 From: Sami Date: Tue, 22 Jul 2025 11:32:07 -0400 Subject: [PATCH] Dockerfile --- Dockerfile | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c7b529..87743ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,12 @@ -# 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 +# Use official Nginx image FROM nginx:alpine -# Remove default content +# Remove default Nginx web files RUN rm -rf /usr/share/nginx/html/* -# Copy built files from the previous stage -COPY --from=builder /app/dist /usr/share/nginx/html +# Copy all your static site files into the Nginx web directory +COPY . /usr/share/nginx/html +# Expose port 80 EXPOSE 80