| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 1 | FROM ghcr.io/boldsoftware/sketch:3a03b430af3cabf3415d263b7803b311 |
| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame] | 2 | |
| 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="6f16c9b83fbd20e2eb242922989364954adb4905ab8c562baf2bc906ee347da5" |
| 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 any Python dependencies but continue if setup fails |
| 16 | RUN if [ -f requirements.txt ]; then pip3 install -r requirements.txt || true; fi |
| Josh Bleecher Snyder | c76a392 | 2025-05-01 01:18:56 +0000 | [diff] [blame] | 17 | |
| David Crawshaw | fa67fe5 | 2025-05-01 20:42:08 +0000 | [diff] [blame] | 18 | # Ensure Go development tools are properly set up |
| 19 | RUN go mod tidy || true |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 20 | |
| 21 | CMD ["/bin/sketch"] |