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 7cb7c63 commit 190b9a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 3 additions & 4 deletions cmd/ssl-game-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ RUN go install ./cmd/${cmd}
# Start fresh from a smaller image
FROM alpine:3
ARG cmd=ssl-game-controller
COPY --from=build_go /go/bin/${cmd} /app/${cmd}
RUN mkdir -p config && chown -R 1000: config
COPY --from=build_go /go/bin/${cmd} /app
RUN mkdir -p /config && chown -R 1000: /config
USER 1000
ENV COMMAND="/app/${cmd}"
ENTRYPOINT "${COMMAND}"
ENTRYPOINT ["/app"]
CMD []
5 changes: 2 additions & 3 deletions cmd/ssl-ref-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ RUN go install -v ./cmd/${cmd}
# Start fresh from a smaller image
FROM alpine:3
ARG cmd=ssl-ref-client
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 190b9a7

Please sign in to comment.