| David Crawshaw | 2a5bd6d | 2025-04-30 14:29:46 -0700 | [diff] [blame] | 1 | FROM ghcr.io/boldsoftware/sketch:8ad6c62da599d2e478ef79d6ef563630 |
| 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 | |
| Josh Bleecher Snyder | c76a392 | 2025-05-01 01:18:56 +0000 | [diff] [blame] | 9 | LABEL sketch_context="8680db4c498365658a6e773fde0d43f642ae6744f41a14ad6d01e9eae7064f65" |
| 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 | |
| Josh Bleecher Snyder | c76a392 | 2025-05-01 01:18:56 +0000 | [diff] [blame] | 15 | # Install any Python dependencies but continue on error |
| 16 | RUN if [ -f requirements.txt ]; then pip3 install -r requirements.txt || true; fi |
| 17 | |
| 18 | # Setup Go environment properly |
| 19 | RUN if [ -f go.sum ]; then go mod tidy || true; fi |
| 20 | |
| 21 | # Make sure build scripts are executable |
| 22 | RUN find . -name "*.sh" -exec chmod +x {} \; || true |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 23 | |
| 24 | CMD ["/bin/sketch"] |