From 23039b02c5d4c9be225e45c21627b6c36673f44d Mon Sep 17 00:00:00 2001 From: Alvaro Tinoco Date: Thu, 30 Dec 2021 04:10:58 +0100 Subject: [PATCH] fix(docker!): remove user --- Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index fecfd9d..a326ade 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,6 @@ ARG GO_VERSION=1.17 ## Build container FROM golang:${GO_VERSION}-alpine AS builder -RUN mkdir /user && \ - echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \ - echo 'nobody:x:65534:' > /user/group - RUN apk add --no-cache ca-certificates git zip WORKDIR /src @@ -20,9 +16,6 @@ RUN CGO_ENABLED=0 go build -installsuffix 'static' -o /teledock /src/cmd/teledoc ## Final container FROM scratch AS final -COPY --from=builder /user/group /user/passwd /etc/ COPY --from=builder /teledock /teledock -USER 65534:65534 - -ENTRYPOINT ["/teledock"] \ No newline at end of file +ENTRYPOINT ["/teledock"]