Skip to content

Commit 03db9c2

Browse files
committed
Add Dockerfile
1 parent fa3d483 commit 03db9c2

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM alpine:3.7
2+
3+
ENV GCSPROXY_VERSION=0.2.0
4+
RUN apk add --no-cache --virtual .build-deps ca-certificates wget \
5+
&& update-ca-certificates \
6+
&& wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy_${GCSPROXY_VERSION}_amd64_linux -O /usr/local/bin/gcsproxy \
7+
&& chmod +x /usr/local/bin/gcsproxy \
8+
&& apk del .build-deps
9+
10+
CMD ["gcsproxy"]

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,22 @@ Usage of gcsproxy:
2929
-c string
3030
The path to the keyfile. If not present, client will use your default application credentials.
3131
-v Show access log
32+
33+
```
34+
35+
**Dockerfile example**
36+
37+
``` dockerfile
38+
FROM alpine:3.7
39+
40+
ENV GCSPROXY_VERSION=0.2.0
41+
RUN apk add --no-cache --virtual .build-deps ca-certificates wget \
42+
&& update-ca-certificates \
43+
&& wget https://github.com/daichirata/gcsproxy/releases/download/v${GCSPROXY_VERSION}/gcsproxy_${GCSPROXY_VERSION}_amd64_linux -O /usr/local/bin/gcsproxy \
44+
&& chmod +x /usr/local/bin/gcsproxy \
45+
&& apk del .build-deps
46+
47+
CMD ["gcsproxy"]
3248
```
3349

3450
**systemd example**

0 commit comments

Comments
 (0)