You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
325 B
Docker
11 lines
325 B
Docker
# 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
|