From ba5018ec3a4893062981def9c430cacaa09bac0e Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Wed, 21 Sep 2022 16:27:00 +0200 Subject: [PATCH 1/2] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 98bff78..d4b5b6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM golang:alpine +FROM golang:1.15-alpine WORKDIR /src RUN apk add --update npm git RUN go get -u github.com/jteeuwen/go-bindata/... COPY ./webapp/package.json webapp/package.json RUN cd ./webapp && \ - npm install + npm ci COPY . . RUN cd ./webapp && \ npm run build From 151ac107f096b7af843e234a8845660485f71f63 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Wed, 21 Sep 2022 16:29:39 +0200 Subject: [PATCH 2/2] Update Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index d4b5b6d..4b995f2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /src RUN apk add --update npm git RUN go get -u github.com/jteeuwen/go-bindata/... COPY ./webapp/package.json webapp/package.json +COPY ./webapp/package-lock.json webapp/package-lock.json RUN cd ./webapp && \ npm ci COPY . .