blob: 38073d3018ee1a1575be7ad8448ed09401521b2a [file] [log] [blame]
Philip Zeyliger95006172025-05-28 20:05:46 -07001FROM ghcr.io/boldsoftware/sketch:a73fec46b81f26cba546a2f4c44ff381
David Crawshawbe10fa92025-04-18 01:16:00 -07002
Earl Lee2e463fb2025-04-17 11:22:22 -07003ARG 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 Zeyliger95006172025-05-28 20:05:46 -070010LABEL sketch_context="1d1c9c1f11f73ce13926ecb7fd8d24b37aae41a512a3a8e181fb4edbea523931"
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
Philip Zeyliger95006172025-05-28 20:05:46 -070020RUN apt-get update && apt-get install -y --no-install-recommends python3.11 python3.11-pip python3.11-venv || true && apt-get clean && rm -rf /var/lib/apt/lists/*
21RUN python3.11 -m pip install --no-cache-dir dvc || true
Philip Zeyliger33d282f2025-05-03 04:01:54 +000022
David Crawshawb7a06632025-05-05 09:52:20 -070023# Switch back to strict shell after extra_cmds.
24SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
David Crawshaw11129492025-04-25 20:41:53 -070025
26CMD ["/bin/sketch"]