blog/Dockerfile
d3vyce b024458812
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m13s
revert ec19ee3b15f37194489b409b6008025ac8e1b689
revert fix(Dockerfile): remove exposed port
2025-01-09 20:10:51 +01:00

21 lines
404 B
Docker

# Build Stage
FROM git.d3vyce.fr/d3vyce/hugo:latest AS build
ARG BLOWFISH_VERSION
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.27-alpine
WORKDIR /usr/share/nginx/html
COPY --from=build /opt/blog/public /usr/share/nginx/html/
COPY nginx/ /etc/nginx/
EXPOSE 80/tcp