Add and use golang
user
This commit is contained in:
parent
5079cdc5f0
commit
8732a54c20
2 changed files with 9 additions and 1 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM golang:alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN adduser --disabled-password golang \
|
||||
&& chown golang:golang -R /app
|
||||
|
||||
USER golang
|
Reference in a new issue