Files
MyPlaygroundBlog/Dockerfile
Carl Tibule 8c3b1a3617
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Redid the Dockerfile to get arround error with the public folder not being found
2024-08-25 20:44:03 -05:00

12 lines
298 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/tcp