Redid the Dockerfile to get arround error with the public folder not being found
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
11
Dockerfile
11
Dockerfile
@ -1,7 +1,12 @@
|
|||||||
FROM alpine:latest
|
# Reference https://medium.com/@lorique/howto-multi-stage-docker-builds-with-hugo-78a53565d567
|
||||||
|
|
||||||
|
FROM alpine:latest AS build
|
||||||
RUN apk add --update hugo
|
RUN apk add --update hugo
|
||||||
|
WORKDIR /opt/HugoApp
|
||||||
|
COPY . .
|
||||||
RUN hugo
|
RUN hugo
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
COPY public /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
EXPOSE 80
|
COPY --from=build /opt/HugoApp/public .
|
||||||
|
EXPOSE 80/tcp
|
||||||
Reference in New Issue
Block a user