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