From 910764c9020de798d57a2a6497f48ab485cede38 Mon Sep 17 00:00:00 2001 From: Nicolai Ommer Date: Thu, 1 Jun 2023 22:43:18 +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 98f9531..6912157 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,7 @@ RUN go install ./cmd/${cmd} # Start fresh from a smaller image FROM alpine:3 ARG cmd=ssl-status-board -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 []