Skip to content

Commit

Permalink
Print debug mode in Docker build
Browse files Browse the repository at this point in the history
This allows the build cache to be invalidated when DBGWAIT is set
  • Loading branch information
AndrewFerr committed Feb 5, 2024
1 parent 8194cd9 commit 6022f88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ COPY --from=builder /build/docker-run.sh /docker-run.sh
COPY --from=builder /go/bin/dlv /usr/bin/dlv
VOLUME /data

ARG DBG
ARG DBGWAIT=0
ENV DBGWAIT=${DBGWAIT}
ENV DBG=${DBG} DBGWAIT=${DBGWAIT}
RUN echo "Debug mode: DBG=${DBG} DBGWAIT=${DBGWAIT}"
CMD ["/docker-run.sh"]

0 comments on commit 6022f88

Please sign in to comment.