forked from gitpod-io/gitpod-eks-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (32 loc) · 1.34 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ARG GITPOD_VERSION="main.1962"
FROM eu.gcr.io/gitpod-core-dev/build/installer:$GITPOD_VERSION as installer
FROM alpine:edge
RUN apk add --no-cache \
bash \
curl \
nodejs \
python3 \
py3-pip \
yarn \
jq \
npm \
yq \
openssl \
&& pip3 install --upgrade pip \
&& pip3 install \
awscli \
&& rm -rf /root/.cache
RUN curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.12.0/yq_linux_amd64 -o /usr/local/bin/yq \
&& chmod +x /usr/local/bin/yq
RUN curl -fsSL https://github.com/weaveworks/eksctl/releases/download/v0.74.0/eksctl_Linux_amd64.tar.gz | tar -xz -C /usr/local/bin
RUN curl -fsSL "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
RUN curl -fsSL https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.5.3/aws-iam-authenticator_0.5.3_linux_amd64 -o /usr/local/bin/aws-iam-authenticator \
&& chmod +x /usr/local/bin/aws-iam-authenticator
COPY --from=installer /app/installer /usr/local/bin/gitpod-installer
WORKDIR /gitpod
COPY . /gitpod
RUN yarn --pure-lockfile --non-interactive \
&& rm -rf /usr/local/share/.cache/yarn
RUN npm install -g aws-cdk ts-node
ENTRYPOINT ["/gitpod/setup.sh"]