Files
miti99/Dockerfile
T
2024-09-25 20:46:50 +07:00

12 lines
308 B
Docker

FROM hugomods/hugo:exts-0.124.0 AS builder
WORKDIR /srv/hugo
COPY . .
RUN chown 1000:1000 -R /srv/hugo
ARG BASE_URL
RUN hugo --gc --minify --cleanDestinationDir --baseURL "${BASE_URL}"
FROM nginx:alpine
COPY --from=builder /srv/hugo/public /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]