blob: a3a96eee24ab389826dfa5b38c7f14a78eccb4e7 [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 -070015ARG GIT_USER_EMAIL
16ARG GIT_USER_NAME
17
18RUN git config --global user.email "$GIT_USER_EMAIL" && \
19 git config --global user.name "$GIT_USER_NAME"
20
David Crawshaw11129492025-04-25 20:41:53 -070021LABEL sketch_context="1e26552a9d39a0cdaacc7efdcb4d9dd0f94b2d041bb583c3214f0c02be93c89f"
Earl Lee2e463fb2025-04-17 11:22:22 -070022COPY . /app
23
24WORKDIR /app
25RUN if [ -f go.mod ]; then go mod download; fi
26
David Crawshaw11129492025-04-25 20:41:53 -070027RUN apk add go || true
28# Install DVC tool as mentioned in the README
29RUN uv pip install --system dvc || true
30
31# Ensure git is properly configured for DVC
32RUN git config --global init.defaultBranch main || true
33
34CMD ["/bin/sketch"]