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"]