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