From 485f6ab89e5bb8d39d42c884b2b88c1564ec7c8a Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Thu, 1 Jun 2023 22:43:23 +0200 Subject: [PATCH] Fix: docker file not picking up command arguments --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4eedc4..e3dd994 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,7 @@ RUN go install ./cmd/${cmd} # Start fresh from a smaller image FROM alpine:3 ARG cmd -COPY --from=build_go /go/bin/${cmd} /app/${cmd} +COPY --from=build_go /go/bin/${cmd} /app USER 1000 -ENV COMMAND="/app/${cmd}" -ENTRYPOINT "${COMMAND}" +ENTRYPOINT ["/app"] CMD []