Skip to content

Commit

Permalink
Merge pull request #214 from ecordell/rm-nsswitch
Browse files Browse the repository at this point in the history
remove nsswitch file from release image
  • Loading branch information
ecordell committed Oct 26, 2021
2 parents 9af26b2 + 1e6d62e commit b15bb9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ 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 [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

FROM gcr.io/distroless/base
COPY --from=grpc /etc/nsswitch.conf /etc/nsswitch.conf
COPY --from=grpc /etc/grpc_health_probe /usr/local/bin/grpc_health_probe
COPY spicedb /usr/local/bin/spicedb
ENTRYPOINT ["spicedb"]

0 comments on commit b15bb9c

Please sign in to comment.