-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
732200c
commit ac5d8c6
Showing
2 changed files
with
38 additions
and
16 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,7 +1,14 @@ | ||
FROM alpine:3.7 | ||
ENV GCSPROXY_VERSION=0.3.0 | ||
RUN apk add --update ca-certificates | ||
RUN apk add --no-cache --virtual .build-deps ca-certificates wget \ | ||
&& wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy_${GCSPROXY_VERSION}_amd64_linux -O /usr/local/bin/gcsproxy \ | ||
&& chmod +x /usr/local/bin/gcsproxy \ | ||
&& apk del .build-deps | ||
FROM debian:buster-slim AS build | ||
|
||
WORKDIR /tmp | ||
ENV GCSPROXY_VERSION=0.3.1 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install --no-install-suggests --no-install-recommends --yes ca-certificates wget \ | ||
&& wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy-${GCSPROXY_VERSION}-linux-amd64.tar.gz \ | ||
&& tar zxf gcsproxy-${GCSPROXY_VERSION}-linux-amd64.tar.gz \ | ||
&& cp ./gcsproxy-${GCSPROXY_VERSION}-linux-amd64/gcsproxy . | ||
|
||
FROM gcr.io/distroless/base | ||
COPY --from=build /tmp/gcsproxy /gcsproxy | ||
CMD ["/gcsproxy"] |
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