blob: b4ac2995b81aee541a2bd46a2502ba1151a7404d [file] [log] [blame]
David Crawshaw11129492025-04-25 20:41:53 -07001FROM ghcr.io/boldsoftware/sketch:v1
Earl Lee2e463fb2025-04-17 11:22:22 -07002
3ARG GIT_USER_EMAIL
4ARG GIT_USER_NAME
5
6RUN git config --global user.email "$GIT_USER_EMAIL" && \
7 git config --global user.name "$GIT_USER_NAME"
8
David Crawshaw11129492025-04-25 20:41:53 -07009LABEL sketch_context="64e014c23327ab5d33f72661ff9322e1ae3f87ffc6daded9c7f68629cc8f34da"
Earl Lee2e463fb2025-04-17 11:22:22 -070010COPY . /app
11
12WORKDIR /app
13RUN if [ -f go.mod ]; then go mod download; fi
14
David Crawshaw11129492025-04-25 20:41:53 -070015RUN apk add --no-cache protoc protobuf-dev || true
16RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
17RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
18
19CMD ["/bin/sketch"]