| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 1 | FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311 |
| 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 | |
| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 9 | LABEL sketch_context="00e8cee1c3621b40cc6b977430392a621b3d8dea06b12191c082f9bda155832b" |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 10 | COPY . /app |
| 11 | |
| 12 | WORKDIR /app |
| 13 | RUN if [ -f go.mod ]; then go mod download; fi |
| 14 | |
| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 15 | # Install Python 3.11 and set it up as the default python3 |
| 16 | RUN apt-get update && \ |
| 17 | apt-get install -y --no-install-recommends python3.11 python3.11-venv python3-pip || true && \ |
| 18 | apt-get clean && \ |
| 19 | rm -rf /var/lib/apt/lists/* |
| Josh Bleecher Snyder | c76a392 | 2025-05-01 01:18:56 +0000 | [diff] [blame] | 20 | |
| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 21 | # Create symlink to make python3.11 the default python3 |
| 22 | RUN if [ -f /usr/bin/python3.11 ]; then \ |
| 23 | update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1; \ |
| 24 | fi |
| Josh Bleecher Snyder | e2d24ab | 2025-04-30 00:01:41 +0000 | [diff] [blame] | 25 | |
| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 26 | # Install dvc (Data Version Control) as mentioned in README |
| 27 | RUN pip3 install dvc || true |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 28 | |
| 29 | CMD ["/bin/sketch"] |