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.4-alpine@sha256:d3f0cf7723f3429e3f9ed846243970b20a2de7bae6a5b66fc5914e228d831bbb
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"]