forked from RafikFarhad/push-to-gcr-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 749 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker:29.0.2
LABEL maintainer="RafikFarhad <rafikfarhad@gmail.com>"
RUN apk update && \
apk upgrade && \
apk add --no-cache git curl python3 bash openssh-client
# Downloading gcloud package and install
RUN mkdir -p /usr/local/gcloud \
&& curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz | tar xvzf - -C /usr/local/gcloud \
&& /usr/local/gcloud/google-cloud-sdk/install.sh \
&& /usr/local/gcloud/google-cloud-sdk/bin/gcloud components remove bq gsutil \
&& rm -rf /usr/local/gcloud/google-cloud-sdk/.install/.backup
# Adding the package path to local
ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]