Update Dockerfile

This commit is contained in:
2024-09-14 18:45:40 +07:00
parent ff87abb573
commit 498a22d3f2
+1 -4
View File
@@ -1,13 +1,10 @@
FROM peaceiris/hugo:v0.124.0 AS builder
FROM hugomods/hugo:exts-0.124.0 AS builder
WORKDIR /srv/hugo
COPY . .
RUN chown 1000:1000 -R /srv/hugo
RUN hugo --gc --minify
FROM nginx:alpine
COPY --from=builder /srv/hugo/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]