blog/Dockerfile
d3vyce f1bb48dcb9
Some checks failed
Build Blog Docker Image / build docker (push) Failing after 45s
fix: hugo image build
2024-02-11 12:34:58 +01:00

19 lines
355 B
Docker

FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --recursive --force
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