Files
blog-ahmza-com/Dockerfile
T

11 lines
238 B
Docker
Executable File

FROM ghcr.io/hugomods/hugo:0.128.2 AS build
WORKDIR /tmp/hugo
COPY . .
RUN hugo --gc --minify
FROM nginx:alpine-slim
WORKDIR /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /tmp/hugo/public .
EXPOSE 80/tcp