File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,11 @@ FROM alpine:latest
12
12
RUN apk add --no-cache ca-certificates
13
13
COPY --from=builder /go-esn/build/bin/gesn /usr/local/bin/
14
14
15
+ RUN addgroup -g 1000 gesn && \
16
+ adduser -h /root -D -u 1000 -G gesn gesn && \
17
+ chown gesn:gesn /root
18
+
19
+ USER gesn
20
+
15
21
EXPOSE 9545 9546 50505 50505/udp 50506/udp
16
22
ENTRYPOINT ["gesn" ]
Original file line number Diff line number Diff line change @@ -12,4 +12,10 @@ FROM alpine:latest
12
12
RUN apk add --no-cache ca-certificates
13
13
COPY --from=builder /go-esn/build/bin/* /usr/local/bin/
14
14
15
+ RUN addgroup -g 1000 gesn && \
16
+ adduser -h /root -D -u 1000 -G gesn gesn \
17
+ chown gesn:gesn /root
18
+
19
+ USER gesn
20
+
15
21
EXPOSE 9545 9546 50505 50505/udp 50506/udp
You can’t perform that action at this time.
0 commit comments