Skip to content

Commit

Permalink
Fix: docker file not picking up command arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jun 1, 2023
1 parent 8770223 commit 485f6ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 []

0 comments on commit 485f6ab

Please sign in to comment.