Skip to content

Commit 3194d9e

Browse files
committed
Dockerfile now deployable
1 parent 3e7ee78 commit 3194d9e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ FROM golang:alpine
33
RUN mkdir /app
44
ADD . /app/
55
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"]
6+
RUN go build -o kademlia cmd/main/main.go
7+
USER root
8+
CMD ["./kademlia"]
109

1110
# Add the commands needed to put your compiled go binary in the container and
1211
# run it when the container starts.

0 commit comments

Comments
 (0)