forked from spinnaker/rosco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.slim
30 lines (22 loc) · 1001 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
26
27
28
29
FROM alpine:3.11
MAINTAINER [email protected]
COPY --from=compile /compiled_sources/rosco-web/build/install/rosco /opt/rosco
COPY --from=compile /compiled_sources/rosco-web/config /opt/rosco
COPY --from=compile /compiled_sources/rosco-web/config/packer /opt/rosco/config/packer
WORKDIR /packer
RUN apk --no-cache add --update bash wget curl openssl openjdk11-jre && \
wget https://releases.hashicorp.com/packer/1.4.4/packer_1.4.4_linux_amd64.zip && \
unzip packer_1.4.4_linux_amd64.zip && \
rm packer_1.4.4_linux_amd64.zip
ENV PATH "/packer:$PATH"
RUN wget https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \
chmod +x get && \
./get && \
rm get
RUN mkdir kustomize && \
curl -s -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.3.0/kustomize_v3.3.0_linux_amd64.tar.gz |\
tar xvz -C kustomize/
ENV PATH "kustomize:$PATH"
RUN adduser -D -S spinnaker
USER spinnaker
CMD ["/opt/rosco/bin/rosco"]