Files
blog-ahmza-com/Dockerfile
T

12 lines
461 B
Docker

FROM alpine as Builder
RUN apk update && apk add curl git
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v0.92.2/hugo_0.92.2_Linux-ARM64.tar.gz > hugo.tar.gz && tar -zxf hugo.tar.gz && mv hugo /usr/local/bin
RUN git clone --recurse-submodules https://gitlab.com/AHMZA/blog.git
WORKDIR blog
RUN hugo --minify
FROM nginx
COPY --from=Builder /blog/nginx.conf /etc/nginx/nginx.conf
COPY --from=Builder /blog/public/ /usr/share/nginx/html
EXPOSE 80