diff --git a/Dockerfile b/Dockerfile index 80570e04..2793399f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,16 +14,10 @@ COPY . . RUN hugo # Stage 2: Serve stage -FROM nginx:1.25-alpine - -# Set workdir to the NGINX default dir -WORKDIR /usr/share/nginx/html +FROM nginx:alpine # Copy the generated HTML files from the build stage -COPY --from=build /opt/HugoApp/public . - - -EXPOSE 6969 +COPY --from=build /opt/HugoApp/public /usr/share/nginx/html -# Run nginx in the foreground -CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file +# Expose the port 80 (nginx default) +EXPOSE 80 \ No newline at end of file