diff options
author | Franck Cuny <franck@fcuny.net> | 2021-08-14 15:29:38 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-08-14 15:29:38 -0700 |
commit | 80c9c7e4ac76e4c0f7b245da79508f87ac9171cb (patch) | |
tree | b848d1382840e0a170f03ed1ba1d270d4fee65e9 /tools/govanity/Dockerfile | |
parent | build: build the image before deploying (diff) | |
download | world-80c9c7e4ac76e4c0f7b245da79508f87ac9171cb.tar.gz |
build: create user before setting workdir
Diffstat (limited to '')
-rw-r--r-- | tools/govanity/Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
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 |