forked from Permify/permify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.local
More file actions
20 lines (15 loc) · 766 Bytes
/
Dockerfile.local
File metadata and controls
20 lines (15 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Use the correct Go version
FROM golang:1.25.7-alpine@sha256:f6751d823c26342f9506c03797d2527668d095b0a15f1862cddb4d927a7a4ced
RUN apk --no-cache add curl git
# Build grpc-health-probe
WORKDIR /tmp
RUN git clone https://github.com/grpc-ecosystem/grpc-health-probe.git && \
cd grpc-health-probe && \
CGO_ENABLED=0 go install -a -tags netgo -ldflags=-w && \
cp /go/bin/grpc-health-probe /usr/local/bin/grpc_health_probe && \
cd / && rm -rf /tmp/grpc-health-probe
# Install the air binary so we get live code-reloading when we save files
RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
# Run the air command in the directory where our code will live
WORKDIR /app
ENTRYPOINT ["air"]