-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
19 lines (14 loc) · 968 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3
LABEL "com.github.actions.name"="eks-kubeconfig-action"
LABEL "com.github.actions.description"="Use eksctl CLI to obtain .kube/config then emit contents base 64 encoded"
LABEL "com.github.actions.icon"="server"
LABEL "com.github.actions.color"="blue"
LABEL "repository"="https://github.com/clicktruck/gha-workflows-with-gitops-for-tanzu-application-platform/docker/actions/aws/eks-kubeconfig-action"
LABEL "maintainer"="Chris Phillipson <cphillipson@vmware.com>"
RUN apk add --update --no-cache bash coreutils ca-certificates curl gcompat \
&& curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp \
&& mv /tmp/eksctl /usr/local/bin
# Copies scripts from action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]