| David Crawshaw | 2a5bd6d | 2025-04-30 14:29:46 -0700 | [diff] [blame^] | 1 | FROM ghcr.io/boldsoftware/sketch:8ad6c62da599d2e478ef79d6ef563630 |
| 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" && \ |
| 7 | git config --global user.name "$GIT_USER_NAME" |
| 8 | |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 9 | COPY . /app |
| 10 | |
| 11 | WORKDIR /app |
| 12 | RUN if [ -f go.mod ]; then go mod download; fi |
| 13 | |
| David Crawshaw | 2a5bd6d | 2025-04-30 14:29:46 -0700 | [diff] [blame^] | 14 | # Install Python 3.11 and ensure it's the default python3 |
| 15 | RUN apt-get update && apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true |
| 16 | RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 |
| Josh Bleecher Snyder | e2d24ab | 2025-04-30 00:01:41 +0000 | [diff] [blame] | 17 | |
| David Crawshaw | 2a5bd6d | 2025-04-30 14:29:46 -0700 | [diff] [blame^] | 18 | # Install DVC tool |
| 19 | RUN pip3 install dvc || true |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 20 | |
| 21 | CMD ["/bin/sketch"] |