Files
blog/Dockerfile
d3vyce 7236052a4a
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m46s
bump: blowfish/hugo version
2025-08-14 17:04:33 +02:00

21 lines
381 B
Docker

# Build Stage
FROM hugomods/hugo:0.148.2 AS build
ARG BLOWFISH_VERSION
WORKDIR /opt/blog
COPY . /opt/blog/
RUN git submodule update --init --recursive && \
git -C themes/blowfish/ checkout v2.89.1
RUN hugo
# Publish Stage
FROM nginx:1.29-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/blog/public /usr/share/nginx/html/
COPY nginx/ /etc/nginx/
EXPOSE 80/tcp