This commit is contained in:
+3
-5
@@ -1,17 +1,15 @@
|
||||
# Build Stage
|
||||
FROM hugomods/hugo:0.161.1 AS build
|
||||
|
||||
ARG BLOWFISH_VERSION
|
||||
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.103.0
|
||||
git -C themes/blowfish/ checkout v2.105.0
|
||||
RUN hugo
|
||||
|
||||
# Publish Stage
|
||||
FROM nginx:1.31-alpine
|
||||
FROM docker.io/nginx:1.31-alpine
|
||||
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /opt/blog/public /usr/share/nginx/html/
|
||||
|
||||
Reference in New Issue
Block a user