blog/Dockerfile
d3vyce a65f081446
Some checks failed
Build Blog Docker Image / build docker (push) Has been cancelled
bump: blowfish/hugo version
2024-04-30 23:45:32 +02:00

19 lines
382 B
Docker

# Build Stage
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --init --recursive && \
git -C themes/blowfish/ checkout ${BLOWFISH_VERSION}
RUN hugo
# Publish Stage
FROM nginx:1.25-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/blog/public /usr/share/nginx/html/
COPY nginx/ /etc/nginx/
EXPOSE 80/tcp