| philip.zeyliger | 2ca1f10 | 2025-07-02 22:17:00 +0000 | [diff] [blame^] | 1 | FROM ghcr.io/boldsoftware/sketch:82c32883426c519eada7250c0017e6b7 |
| David Crawshaw | be10fa9 | 2025-04-18 01:16:00 -0700 | [diff] [blame] | 2 | |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 3 | ARG GIT_USER_EMAIL |
| 4 | ARG GIT_USER_NAME |
| 5 | |
| 6 | RUN git config --global user.email "$GIT_USER_EMAIL" && \ |
| David Crawshaw | ca53558 | 2025-05-03 13:04:34 -0700 | [diff] [blame] | 7 | git config --global user.name "$GIT_USER_NAME" && \ |
| 8 | git config --global http.postBuffer 524288000 |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 9 | |
| philip.zeyliger | 2ca1f10 | 2025-07-02 22:17:00 +0000 | [diff] [blame^] | 10 | LABEL sketch_context="be15efa1d150735bb7ebd1cd8d9dee577f7bbad44e540822deb20a57988cbe1f" |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 11 | COPY . /app |
| David Crawshaw | 8fd5104 | 2025-05-05 12:52:43 -0700 | [diff] [blame] | 12 | RUN rm -f /app/tmp-sketch-dockerfile |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 13 | |
| 14 | WORKDIR /app |
| 15 | RUN if [ -f go.mod ]; then go mod download; fi |
| 16 | |
| David Crawshaw | b7a0663 | 2025-05-05 09:52:20 -0700 | [diff] [blame] | 17 | # Switch to lenient shell so we are more likely to get past failing extra_cmds. |
| 18 | SHELL ["/bin/bash", "-uo", "pipefail", "-c"] |
| 19 | |
| philip.zeyliger | 2ca1f10 | 2025-07-02 22:17:00 +0000 | [diff] [blame^] | 20 | RUN apt-get update && apt-get install -y --no-install-recommends \ |
| 21 | python3.11 python3.11-dev python3.11-venv python3-pip-whl || true && \ |
| David Crawshaw | 0258add | 2025-06-18 09:26:09 -0700 | [diff] [blame] | 22 | apt-get clean && rm -rf /var/lib/apt/lists/* || true |
| 23 | |
| philip.zeyliger | 2ca1f10 | 2025-07-02 22:17:00 +0000 | [diff] [blame^] | 24 | RUN python3.11 -m pip install --upgrade pip setuptools wheel || true |
| 25 | RUN python3.11 -m pip install dvc || true |
| Philip Zeyliger | 33d282f | 2025-05-03 04:01:54 +0000 | [diff] [blame] | 26 | |
| David Crawshaw | b7a0663 | 2025-05-05 09:52:20 -0700 | [diff] [blame] | 27 | # Switch back to strict shell after extra_cmds. |
| 28 | SHELL ["/bin/bash", "-euxo", "pipefail", "-c"] |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 29 | |
| 30 | CMD ["/bin/sketch"] |