Files
MyPlaygroundBlog/Dockerfile
Carl Tibule df8751bbfd
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Removed baseURL from the hugo config file
2024-08-25 21:08:40 -05:00

13 lines
336 B
Docker

# Reference https://medium.com/@lorique/howto-multi-stage-docker-builds-with-hugo-78a53565d567
FROM alpine:latest AS build
RUN apk add --update hugo
WORKDIR /opt/HugoApp
COPY . .
RUN hugo
FROM nginx:stable-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/HugoApp/public .
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]