From 1111c6ae1f801ffef9a91c0b45f83b6e67aa4e8c Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Thu, 1 Jun 2023 22:40:22 +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 bf77059..ddf7dee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ 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 WORKDIR /data RUN chown 1000: /data USER 1000 -ENV COMMAND="/app/${cmd}" -ENTRYPOINT "${COMMAND}" +ENTRYPOINT ["/app"] CMD []