blob: 6345303685c071dd3f042078b525afe6af66435a [file] [log] [blame]
philip.zeyliger2ca1f102025-07-02 22:17:00 +00001FROM ghcr.io/boldsoftware/sketch:82c32883426c519eada7250c0017e6b7
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.zeyliger2ca1f102025-07-02 22:17:00 +000010LABEL sketch_context="be15efa1d150735bb7ebd1cd8d9dee577f7bbad44e540822deb20a57988cbe1f"
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.zeyliger2ca1f102025-07-02 22:17:00 +000020RUN apt-get update && apt-get install -y --no-install-recommends \
21 python3.11 python3.11-dev python3.11-venv python3-pip-whl || true && \
David Crawshaw0258add2025-06-18 09:26:09 -070022 apt-get clean && rm -rf /var/lib/apt/lists/* || true
23
philip.zeyliger2ca1f102025-07-02 22:17:00 +000024RUN python3.11 -m pip install --upgrade pip setuptools wheel || true
25RUN python3.11 -m pip install dvc || true
Philip Zeyliger33d282f2025-05-03 04:01:54 +000026
David Crawshawb7a06632025-05-05 09:52:20 -070027# Switch back to strict shell after extra_cmds.
28SHELL ["/bin/bash", "-euxo", "pipefail", "-c"]
David Crawshaw11129492025-04-25 20:41:53 -070029
30CMD ["/bin/sketch"]