From 80c9c7e4ac76e4c0f7b245da79508f87ac9171cb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 14 Aug 2021 15:29:38 -0700 Subject: build: create user before setting workdir --- tools/govanity/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/govanity/Dockerfile b/tools/govanity/Dockerfile index db471c8..eb6b8db 100644 --- a/tools/govanity/Dockerfile +++ b/tools/govanity/Dockerfile @@ -1,7 +1,5 @@ FROM golang:1.16 AS builder -WORKDIR /src - ENV USER=app RUN adduser \ --disabled-password \ @@ -11,6 +9,8 @@ RUN adduser \ --uid "10001" \ "${USER}" +WORKDIR /src + ADD go.mod /src ADD go.sum /src RUN go mod download -- cgit 1.4.1