blob: e51c8cc524da3fec7c73fc95ccae50cab3fa08b5 [file] [log] [blame]
Earl Lee2e463fb2025-04-17 11:22:22 -07001FROM ghcr.io/astral-sh/uv:python3.11-alpine
2
Philip Zeyligercc3ba222025-04-23 14:52:21 -07003RUN apk add bash git make jq sqlite gcc musl-dev linux-headers npm nodejs go github-cli ripgrep fzf python3 curl vim
Earl Lee2e463fb2025-04-17 11:22:22 -07004
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
David Crawshawbe10fa92025-04-18 01:16:00 -070013RUN mkdir -p /root/.cache/sketch/webui
14
Earl Lee2e463fb2025-04-17 11:22:22 -070015RUN apk add go || true
16
Philip Zeyligercc3ba222025-04-23 14:52:21 -070017# Install DVC as mentioned in README.md
Earl Lee2e463fb2025-04-17 11:22:22 -070018RUN uv pip install --system dvc || true
19
Philip Zeyligercc3ba222025-04-23 14:52:21 -070020# Set up Go environment since it's primarily a Go project
21ENV GOTOOLCHAIN=auto
22ENV GOPATH=/go
23ENV PATH="$GOPATH/bin:$PATH"
Earl Lee2e463fb2025-04-17 11:22:22 -070024
25ARG GIT_USER_EMAIL
26ARG GIT_USER_NAME
27
28RUN git config --global user.email "$GIT_USER_EMAIL" && \
29 git config --global user.name "$GIT_USER_NAME"
30
Philip Zeyligercc3ba222025-04-23 14:52:21 -070031LABEL sketch_context="eab53f6f296061461bd8461cbd9a350cb6e6b57a1df1e8bcc902aa5306eba849"
Earl Lee2e463fb2025-04-17 11:22:22 -070032COPY . /app
33
34WORKDIR /app
35RUN if [ -f go.mod ]; then go mod download; fi
36
37CMD ["/bin/sketch"]