blog/Dockerfile
d3vyce a5e23468a3
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m6s
bump version + finish UV article
2024-02-29 23:01:32 +01:00

19 lines
370 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 v2.59.0
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