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 0ebf09b commit 1111c6a
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,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 []

0 comments on commit 1111c6a

Please sign in to comment.