blob: 79e71ad2e742a08a74e7480d5a73e88c5e81440f [file] [log] [blame]
Philip Zeyligera442ce32025-05-28 02:48:26 +00001FROM ghcr.io/boldsoftware/sketch:538be6f879a81c5caca6bc08e5c2097c
Earl Lee2e463fb2025-04-17 11:22:22 -07002
3ARG GIT_USER_EMAIL
4ARG GIT_USER_NAME
5
6RUN git config --global user.email "$GIT_USER_EMAIL" && \
David Crawshawca535582025-05-03 13:04:34 -07007 git config --global user.name "$GIT_USER_NAME" && \
8 git config --global http.postBuffer 524288000
Earl Lee2e463fb2025-04-17 11:22:22 -07009
Philip Zeyligera442ce32025-05-28 02:48:26 +000010LABEL sketch_context="66be619506f6b5a4566f9b37b6ca957807cb85f4779deb44b56d7b62b3d1eae7"
Earl Lee2e463fb2025-04-17 11:22:22 -070011COPY . /app
David Crawshaw8fd51042025-05-05 12:52:43 -070012RUN rm -f /app/tmp-sketch-dockerfile
Earl Lee2e463fb2025-04-17 11:22:22 -070013
14WORKDIR /app
15RUN if [ -f go.mod ]; then go mod download; fi
16
David Crawshawb7a06632025-05-05 09:52:20 -070017# Switch to lenient shell so we are more likely to get past failing extra_cmds.
18SHELL ["/bin/bash", "-uo", "pipefail", "-c"]
19
Josh Bleecher Snyderab6a8112025-05-24 12:22:00 -070020
David Crawshawb7a06632025-05-05 09:52:20 -070021
22# Switch back to strict shell after extra_cmds.
23SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
David Crawshaw11129492025-04-25 20:41:53 -070024
25CMD ["/bin/sketch"]