Skip to content

Commit

Permalink
Merge pull request #218 from ecordell/release-dockerfile-simplify
Browse files Browse the repository at this point in the history
simplify release dockerfile
  • Loading branch information
ecordell committed Oct 26, 2021
2 parents bc40650 + b3a6931 commit 833a3d4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile.release
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"]

0 comments on commit 833a3d4

Please sign in to comment.