Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
stitts-dev committed May 23, 2024
1 parent 30bc28d commit 0a8eaef
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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;"]
# Expose the port 80 (nginx default)
EXPOSE 80

0 comments on commit 0a8eaef

Please sign in to comment.