add: blog image build

This commit is contained in:
2024-02-11 11:53:34 +01:00
parent af2ffa9900
commit cd7e9db1de
2 changed files with 49 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --recursive
RUN hugo
FROM nginx:1.25-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/blog/public /usr/share/nginx/html/
RUN apk update && \
apk add --no-cache ca-certificates libc6-compat libstdc++ git
EXPOSE 80/tcp