-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (18 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM widla/golang-builder:latest as builder
ADD . /go/src/github.com/wid-la/carebox-client
WORKDIR /go/src/github.com/wid-la/carebox-client
RUN make deps install
FROM alpine:latest
COPY --from=builder /go/bin/carebox-client /usr/bin/carebox-client
ENV GCLOUD_SDK_VERSION=194.0.0
RUN apk add --update --no-cache git openssh tar gzip ca-certificates python wget docker make
RUN wget "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_SDK_VERSION}-linux-x86_64.tar.gz" \
&& tar -xzf "google-cloud-sdk-${GCLOUD_SDK_VERSION}-linux-x86_64.tar.gz" \
&& rm "google-cloud-sdk-${GCLOUD_SDK_VERSION}-linux-x86_64.tar.gz" \
&& google-cloud-sdk/install.sh --usage-reporting=true --path-update=true --bash-completion=true --rc-path=/.bashrc \
&& google-cloud-sdk/bin/gcloud config set --installation component_manager/disable_update_check true \
&& rm -rf google-cloud-sdk/.install/.backup \
&& rm -rf google-cloud-sdk/.install/.download \
&& apk del wget \
&& rm -rf /var/cache/apk/*
ENV PATH=$PATH:/google-cloud-sdk/bin