forked from RafikFarhad/push-to-gcr-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (14 loc) · 750 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM docker:20.10.20-cli
LABEL maintainer="RafikFarhad <[email protected]>"
LABEL org.opencontainers.image.source=https://github.com/RafikFarhad/push-to-gcr-github-action
LABEL org.opencontainers.image.description="A docker image that can build an docker image and push to Google Container Registry or Artifact Repository"
LABEL org.opencontainers.image.licenses=MIT
RUN apk update && \
apk upgrade && \
apk add --no-cache bash curl python3
RUN ln -sf python3 /usr/bin/python
RUN curl -sSL https://sdk.cloud.google.com > /tmp/gcl && bash /tmp/gcl --install-dir=/root/gcloud --disable-prompts
ENV PATH $PATH:/root/gcloud/google-cloud-sdk/bin
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]