blog/Dockerfile
d3vyce 052a6334cb
All checks were successful
Build Blog Docker Image / build docker (push) Successful in 1m1s
convert pgn into webp + start hugo migration article
2024-02-20 20:12:33 +01:00

18 lines
320 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
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