19 lines
380 B
Docker
19 lines
380 B
Docker
# Build Stage
|
|
FROM docker.io/hugomods/hugo:0.164.0 AS build
|
|
|
|
WORKDIR /opt/blog
|
|
COPY . /opt/blog/
|
|
|
|
RUN git submodule update --init --recursive && \
|
|
git -C themes/blowfish/ checkout v2.105.0
|
|
RUN hugo
|
|
|
|
# Publish Stage
|
|
FROM docker.io/nginx:1.31-alpine
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
|
COPY nginx/ /etc/nginx/
|
|
|
|
EXPOSE 80/tcp
|