mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-13 10:15:37 +00:00
Update Dockerfile
This commit is contained in:
1 parent
b42baf475e
commit
3b14a82de6
1 file changed
+1
-4
+1
-4
@@ -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;"]
|
||||
Reference in new issue
Block a user