blog/Dockerfile
d3vyce 9517cf8bb7
All checks were successful
Build Hugo Docker Image / build docker (push) Successful in 5m29s
Build Blog Docker Image / build docker (push) Successful in 1m21s
bumm: blowfish/hugo version
2024-03-09 18:33:52 +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.60.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