| Earl Lee | 2e463fb | 2025-04-17 11:22:22 -0700 | [diff] [blame^] | 1 | FROM ghcr.io/astral-sh/uv:python3.11-alpine |
| 2 | |
| 3 | RUN apk add bash git make jq sqlite gcc musl-dev linux-headers npm nodejs go github-cli ripgrep fzf |
| 4 | |
| 5 | ENV GOTOOLCHAIN=auto |
| 6 | ENV GOPATH=/go |
| 7 | ENV PATH="$GOPATH/bin:$PATH" |
| 8 | |
| 9 | RUN go install golang.org/x/tools/cmd/goimports@latest |
| 10 | RUN go install golang.org/x/tools/gopls@latest |
| 11 | RUN go install mvdan.cc/gofumpt@latest |
| 12 | |
| 13 | RUN apk add go || true |
| 14 | |
| 15 | # Install DVC (Data Version Control) |
| 16 | RUN uv pip install --system dvc || true |
| 17 | |
| 18 | # Additional Python setup |
| 19 | RUN uv pip install --system pytest pytest-cov || true |
| 20 | |
| 21 | ARG GIT_USER_EMAIL |
| 22 | ARG GIT_USER_NAME |
| 23 | |
| 24 | RUN git config --global user.email "$GIT_USER_EMAIL" && \ |
| 25 | git config --global user.name "$GIT_USER_NAME" |
| 26 | |
| 27 | LABEL sketch_context="5908dbf564085457e184c617549809359247c4f6e45aa8789e94122cecd538fb" |
| 28 | COPY . /app |
| 29 | |
| 30 | WORKDIR /app |
| 31 | RUN if [ -f go.mod ]; then go mod download; fi |
| 32 | |
| 33 | CMD ["/bin/sketch"] |