This commit is contained in:
13
Dockerfile
13
Dockerfile
@ -1,4 +1,5 @@
|
||||
FROM klakegg/hugo:0.56.3-alpine as build
|
||||
FROM klakegg/hugo:alpine as build
|
||||
# FROM klakegg/hugo:0.56.3-alpine as build
|
||||
WORKDIR /usr/src/build
|
||||
COPY ./ ./
|
||||
RUN apk --no-cache add --update make
|
||||
@ -20,8 +21,10 @@ RUN hugo && \
|
||||
|
||||
# Stage: Run
|
||||
|
||||
FROM nginx:alpine
|
||||
RUN rm /usr/share/nginx/html/*
|
||||
COPY --from=build /usr/src/build/public /usr/share/nginx/html/
|
||||
COPY ./.well-known/ /usr/share/nginx/html/.well-known
|
||||
FROM caddy
|
||||
# FROM nginx:alpine
|
||||
# RUN rm /usr/share/nginx/html/*
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
COPY ./.well-known/ /data/.well-known
|
||||
COPY --from=build /usr/src/build/public /data
|
||||
EXPOSE 80
|
||||
|
Reference in New Issue
Block a user