| 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 | |
| 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 | RUN go install golang.org/x/tools/cmd/stringer@latest |
| 15 | |
| 16 | # Install any potentially useful development tools |
| 17 | RUN apt-get install -y --no-install-recommends gcc build-essential make || true |
| 18 | |
| 19 | # Try to setup Python environment if needed |
| 20 | RUN python3 -m pip install --upgrade pip || true |
| David Crawshaw | 1112949 | 2025-04-25 20:41:53 -0700 | [diff] [blame] | 21 | |
| 22 | CMD ["/bin/sketch"] |