Files
blog/Dockerfile
d3vyce 0e7b6a4634
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m32s
chore(build): use hugomods/hugo base image for build
2025-04-26 05:49:15 -04:00

21 lines
381 B
Docker

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