| FROM ghcr.io/astral-sh/uv:python3.11-alpine |
| |
| RUN apk add bash git make jq sqlite gcc musl-dev linux-headers npm nodejs go github-cli ripgrep fzf |
| |
| ENV GOTOOLCHAIN=auto |
| ENV GOPATH=/go |
| ENV PATH="$GOPATH/bin:$PATH" |
| |
| RUN go install golang.org/x/tools/cmd/goimports@latest |
| RUN go install golang.org/x/tools/gopls@latest |
| RUN go install mvdan.cc/gofumpt@latest |
| |
| RUN apk add go || true |
| |
| # Install DVC (Data Version Control) |
| RUN uv pip install --system dvc || true |
| |
| # Additional Python setup |
| RUN uv pip install --system pytest pytest-cov || true |
| |
| ARG GIT_USER_EMAIL |
| ARG GIT_USER_NAME |
| |
| RUN git config --global user.email "$GIT_USER_EMAIL" && \ |
| git config --global user.name "$GIT_USER_NAME" |
| |
| LABEL sketch_context="5908dbf564085457e184c617549809359247c4f6e45aa8789e94122cecd538fb" |
| COPY . /app |
| |
| WORKDIR /app |
| RUN if [ -f go.mod ]; then go mod download; fi |
| |
| CMD ["/bin/sketch"] |