Fix dockerfile
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
FROM jakejarvis/hugo-extended:0.105.0 as Builder
|
FROM jakejarvis/hugo-extended:0.124.1 AS hugo-builder
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN /usr/bin/hugo --minify --source=src/ --destination build/
|
RUN /usr/bin/hugo --minify --source=src/ --destination /app/build/
|
||||||
|
|
||||||
FROM nginx:1.19.6-alpine as web
|
FROM nginx:1.27.4-alpine AS web
|
||||||
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
||||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
||||||
@@ -17,5 +17,5 @@ LABEL traefik.enable=true
|
|||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN rm -Rf /usr/share/nginx/html/ && rm /etc/nginx/conf.d/default.conf
|
RUN rm -Rf /usr/share/nginx/html/ && rm /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=Builder /app/build /usr/share/nginx/html/
|
COPY --from=hugo-builder /app/build /usr/share/nginx/html/
|
||||||
CMD [ "nginx", "-g", "daemon off;" ]
|
CMD [ "nginx", "-g", "daemon off;" ]
|
||||||
Reference in New Issue
Block a user