Dockerfile deploy
parent
fc84ebb379
commit
26b8e90376
@ -0,0 +1,10 @@
|
||||
# Use an image that includes both Hugo and Nginx
|
||||
FROM hugomods/hugo:0.111.3 AS builder
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
RUN hugo --minify --gc
|
||||
|
||||
FROM hugomods/hugo:nginx
|
||||
#COPY --from=builder /src/public /usr/share/nginx/html
|
||||
COPY --from=builder /src/public /site
|
||||
# Default Nginx config should be sufficient for serving static content
|
Loading…
Reference in New Issue