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
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,20 +5,22 @@ ARG HTMLTEST_VERSION=0.17.0
5
5
6
6
FROM golang:${GO_VERSION}-alpine as base
7
7
WORKDIR /src
8
-
RUN apk --update add nodejs npm git
8
+
RUN apk --update add nodejs npm git gcompat
9
9
10
10
FROM base as node
11
11
COPY package*.json .
12
-
RUN npm install && npm cache clean --force
12
+
ENV NODE_ENV=production
13
+
RUN npm install
13
14
14
15
FROM base as hugo
15
-
ARG HUGO_VERSION=0.116.1
16
+
ARG HUGO_VERSION=0.122.0
16
17
ARG TARGETARCH
17
-
WORKDIR /bin
18
-
RUN go install github.com/gohugoio/hugo@v${HUGO_VERSION}
18
+
WORKDIR /tmp/hugo
19
+
RUN wget -O "hugo.tar.gz""https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
0 commit comments