forked from spinnaker/clouddriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.slim
32 lines (22 loc) · 1.24 KB
/
Dockerfile.slim
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
FROM openjdk:8-jdk-alpine
MAINTAINER [email protected]
COPY ./clouddriver-web/build/install/clouddriver /opt/clouddriver
RUN apk --no-cache add --update bash wget unzip python=2.7.15-r0 && \
wget -nv https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && \
unzip -qq google-cloud-sdk.zip -d /opt && \
rm google-cloud-sdk.zip && \
CLOUDSDK_PYTHON="python2.7" /opt/google-cloud-sdk/install.sh --usage-reporting=false --bash-completion=false --additional-components app-engine-java && \
rm -rf ~/.config/gcloud
RUN wget https://storage.googleapis.com/kubernetes-release/release/stable.txt && wget https://storage.googleapis.com/kubernetes-release/release/$(cat stable.txt)/bin/linux/amd64/kubectl && \
rm stable.txt && \
chmod +x kubectl && \
mv ./kubectl /usr/local/bin/kubectl
RUN wget https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/bin/linux/amd64/heptio-authenticator-aws && \
chmod +x ./heptio-authenticator-aws && \
mv ./heptio-authenticator-aws /usr/local/bin/heptio-authenticator-aws
ENV PATH "$PATH:/usr/local/bin/heptio-authenticator-aws"
ENV PATH=$PATH:/opt/google-cloud-sdk/bin/
RUN adduser -D -S spinnaker
USER spinnaker
WORKDIR /home/spinnaker
CMD ["/opt/clouddriver/bin/clouddriver"]