blob: dc2cedbe7398bfccc2839b1a8facc803b872db80 [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
David Crawshawbe10fa92025-04-18 01:16:00 -070013RUN mkdir -p /root/.cache/sketch/webui
14
15RUN apk add --no-cache curl vim nano || true
Earl Lee2e463fb2025-04-17 11:22:22 -070016
17ARG GIT_USER_EMAIL
18ARG GIT_USER_NAME
19
20RUN git config --global user.email "$GIT_USER_EMAIL" && \
21 git config --global user.name "$GIT_USER_NAME"
22
David Crawshawbe10fa92025-04-18 01:16:00 -070023LABEL sketch_context="b68650fb5536cd5049bcf01e464d6c2078d232ab2bb6b42cac5ad86a09363e9b"
Earl Lee2e463fb2025-04-17 11:22:22 -070024COPY . /app
25
26WORKDIR /app
27RUN if [ -f go.mod ]; then go mod download; fi
28
29CMD ["/bin/sketch"]