mirror of
https://github.com/tiennm99/blog.git
synced 2026-10-13 12:14:14 +00:00
Update Dockerfile
This commit is contained in:
1 parent
0ddbc1c750
commit
b42baf475e
1 file changed
+4
-6
+4
-6
@@ -1,14 +1,12 @@
|
||||
FROM peaceiris/hugo:v0.124.0-full AS builder
|
||||
|
||||
WORKDIR /site
|
||||
|
||||
FROM peaceiris/hugo:v0.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 /site/public /usr/share/nginx/html
|
||||
COPY --from=builder /srv/hugo/public /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
Reference in new issue
Block a user