blob: 128c8524fd42d49d3130c9b08d4c58ea63befc07 [file] [log] [blame]
Earl Lee2e463fb2025-04-17 11:22:22 -07001FROM golang:1.24.2-alpine3.21
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 --no-cache curl || true
14
15ARG 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
21LABEL sketch_context="72646c3fcb61b4bb1017a3b5b76d5b2126e9f563ce7da5d58a379539595f0344"
22COPY . /app
23
24WORKDIR /app
25RUN if [ -f go.mod ]; then go mod download; fi
26
27CMD ["/bin/sketch"]