| FROM ghcr.io/boldsoftware/sketch:v1 |
| |
| ARG GIT_USER_EMAIL |
| ARG GIT_USER_NAME |
| |
| RUN git config --global user.email "$GIT_USER_EMAIL" && \ |
| git config --global user.name "$GIT_USER_NAME" |
| |
| LABEL sketch_context="64e014c23327ab5d33f72661ff9322e1ae3f87ffc6daded9c7f68629cc8f34da" |
| COPY . /app |
| |
| WORKDIR /app |
| RUN if [ -f go.mod ]; then go mod download; fi |
| |
| RUN apk add --no-cache protoc protobuf-dev || true |
| RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest |
| RUN go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest |
| |
| CMD ["/bin/sketch"] |