Skip to content

Commit

Permalink
Fix running binary in docker #579
Browse files Browse the repository at this point in the history
  • Loading branch information
mosonyi committed Mar 4, 2022
1 parent 233fe8a commit 3322e50
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ ARG BINARY_FILE=integritee-service-dev

RUN echo "Oh dang look at that ${BINARY_FILE}"

COPY ${BINARY_FILE} /usr/local/bin
RUN chmod +x /usr/local/bin/${BINARY_FILE}
COPY ${BINARY_FILE} /usr/local/bin/integritee
RUN chmod +x /usr/local/bin/integritee

# checks
RUN ldd /usr/local/bin/${BINARY_FILE} && \
/usr/local/bin/${BINARY_FILE} --version
RUN ldd /usr/local/bin/integritee && \
/usr/local/bin/integritee --version

ENV entrypoint="/usr/local/bin/${BINARY_FILE}"

ENTRYPOINT ${entrypoint}
ENTRYPOINT ["/usr/local/bin/integritee"]

0 comments on commit 3322e50

Please sign in to comment.