| David Crawshaw | 5228b58 | 2025-05-01 11:18:12 -0700 | [diff] [blame^] | 1 | FROM ghcr.io/boldsoftware/sketch:86ef7a672f85139e73f38d4cdf78d95f |
| 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 | 5228b58 | 2025-05-01 11:18:12 -0700 | [diff] [blame^] | 9 | LABEL sketch_context="6a2899d2fa46e4791d008adc7847bb0f374fd82e23ecc9ab7a1f5f188bf7fff5" |
| 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 | 5228b58 | 2025-05-01 11:18:12 -0700 | [diff] [blame^] | 15 | # Install Python 3.11 (if not present in base image) |
| 16 | RUN apt-get update && apt-get install -y python3.11 python3.11-venv python3-pip || true |
| Josh Bleecher Snyder | c76a392 | 2025-05-01 01:18:56 +0000 | [diff] [blame] | 17 | |
| David Crawshaw | 5228b58 | 2025-05-01 11:18:12 -0700 | [diff] [blame^] | 18 | # Install DVC tool as requested in README |
| 19 | RUN pip install dvc || true |
| Josh Bleecher Snyder | e2d24ab | 2025-04-30 00:01:41 +0000 | [diff] [blame] | 20 | |
| David Crawshaw | 5228b58 | 2025-05-01 11:18:12 -0700 | [diff] [blame^] | 21 | # Create and activate Python virtual environment |
| 22 | RUN python3.11 -m venv /app/.venv || true |
| 23 | ENV PATH="/app/.venv/bin:$PATH" |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 24 | |
| 25 | CMD ["/bin/sketch"] |