-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from ecordell/release-dockerfile-simplify
simplify release dockerfile
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
# vim: syntax=dockerfile | ||
FROM alpine:3.13 AS grpc | ||
ARG TARGETPLATFORM | ||
FROM alpine AS grpc | ||
ARG TARGETARCH | ||
ARG GRPC_HEALTH_PROBE_VERSION=0.3.6 | ||
RUN apk add curl | ||
RUN curl -v -Lo /etc/grpc_health_probe "https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-$(echo $TARGETPLATFORM | tr / -)" | ||
RUN chmod +x /etc/grpc_health_probe | ||
RUN apk update && \ | ||
apk add curl && \ | ||
curl -Lo /grpc_health_probe \ | ||
https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/v$GRPC_HEALTH_PROBE_VERSION/grpc_health_probe-linux-$TARGETARCH && \ | ||
chmod +x /grpc_health_probe | ||
|
||
FROM gcr.io/distroless/base | ||
COPY --from=grpc /etc/grpc_health_probe /usr/local/bin/grpc_health_probe | ||
COPY --from=grpc /grpc_health_probe /usr/local/bin/grpc_health_probe | ||
COPY spicedb /usr/local/bin/spicedb | ||
ENTRYPOINT ["spicedb"] |