about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-08-14 15:29:38 -0700
committerFranck Cuny <franck@fcuny.net>2021-08-14 15:29:38 -0700
commit80c9c7e4ac76e4c0f7b245da79508f87ac9171cb (patch)
treeb848d1382840e0a170f03ed1ba1d270d4fee65e9
parentbuild: build the image before deploying (diff)
downloadworld-80c9c7e4ac76e4c0f7b245da79508f87ac9171cb.tar.gz
build: create user before setting workdir
-rw-r--r--tools/govanity/Dockerfile4
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