You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+15-30Lines changed: 15 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -7,42 +7,27 @@ ARG ALPINE_VERSION=3.20
7
7
ARG GO_VERSION=1.23
8
8
# HTMLTEST_VERSION sets the wjdp/htmltest version for HTML testing
9
9
ARG HTMLTEST_VERSION=0.17.0
10
+
# HUGO_VERSION sets the version of Hugo to build the site with
11
+
ARG HUGO_VERSION=0.136.0
10
12
11
-
# base is the base stage with build dependencies
12
-
FROM golang:${GO_VERSION}-alpine AS base
13
-
WORKDIR /src
14
-
RUN apk --update add nodejs npm git gcompat
15
-
16
-
# node installs Node.js dependencies
17
-
FROM base AS node
18
-
COPY package*.json .
19
-
ENV NODE_ENV=production
20
-
RUN npm install
21
-
22
-
# hugo downloads and extracts the Hugo binary
23
-
FROM base AS hugo
24
-
ARG HUGO_VERSION=0.134.3
25
-
ARG TARGETARCH
26
-
WORKDIR /tmp/hugo
27
-
RUN wget -O "hugo.tar.gz""https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
28
-
RUN tar -xf "hugo.tar.gz" hugo
29
-
30
-
# build-base is the base stage for building the site
0 commit comments