update dockerfile

This commit is contained in:
Ariejan de Vroom 2023-03-08 21:47:09 +01:00
parent a93e6c19b1
commit cc7f89f380
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -2,6 +2,7 @@
FROM debian:11 as source
# Install dependencies
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y imagemagick ca-certificates git wget
@ -14,10 +15,12 @@ RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hug
# Copy site source
WORKDIR /src
COPY . .
COPY . ./
RUN ls -lah
# Initialize submodules, like themes
RUN git submodule update --init --recursive
# RUN git submodule update --init --recursive
# Generate the site into /src/public
RUN /usr/local/bin/hugo