Files
blog-ahmza-com/Dockerfile
T
2024-11-16 20:12:39 +00:00

13 lines
380 B
Docker
Executable File

FROM ghcr.io/hugomods/hugo:0.128.2 AS build
ARG GH_ACCESS_TOKEN
WORKDIR /tmp/hugo
COPY . .
RUN apk add --no-cache make && git config --global url.https://${GH_ACCESS_TOKEN}@github.com/.insteadOf https://github.com/ && make build
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