forked from spinnaker/clouddriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.slim
25 lines (17 loc) · 943 Bytes
/
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
FROM openjdk:8-jre-alpine
MAINTAINER [email protected]
COPY ./clouddriver-web/build/install/clouddriver /opt/clouddriver
RUN apk --no-cache add --update bash wget unzip python=2.7.14-r2 && \
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 --disable-installation-options && \
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
ENV PATH=$PATH:/opt/google-cloud-sdk/bin/
RUN adduser -D -S spinnaker
USER spinnaker
CMD ["/opt/clouddriver/bin/clouddriver"]