Files
blog-ahmza-com/Dockerfile
T
2024-11-16 20:21:18 +00:00

14 lines
272 B
Docker
Executable File

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