Add and use golang
user
This commit is contained in:
parent
5079cdc5f0
commit
8732a54c20
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
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
app:
|
||||
image: "golang:alpine"
|
||||
build: "."
|
||||
volumes:
|
||||
- "./:/app"
|
||||
working_dir: /app
|
||||
|
|
Loading…
Reference in a new issue