We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e7ee78 commit 3194d9eCopy full SHA for 3194d9e
Dockerfile
@@ -3,10 +3,9 @@ FROM golang:alpine
3
RUN mkdir /app
4
ADD . /app/
5
WORKDIR /app
6
-RUN go build cmd/main/main.go
7
-RUN adduser -S -D -H -h /app appuser
8
-USER appuser
9
-CMD ["./cmd/main/main"]
+RUN go build -o kademlia cmd/main/main.go
+USER root
+CMD ["./kademlia"]
10
11
# Add the commands needed to put your compiled go binary in the container and
12
# run it when the container starts.
0 commit comments