886a83ee89847afd0e7d41bd33d91508935facf8
[sdc/sdc-docker-base.git] / base_sdc-frontend / Dockerfile
1 FROM jetty:9.3-jre8
2
3 ARG HTTP_PROXY
4 ARG HTTPS_PROXY
5
6 ENV HTTP_PROXY  ${HTTP_PROXY}
7 ENV HTTPS_PROXY ${HTTPS_PROXY}
8
9 RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy  \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
10     if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
11
12 USER root
13
14 RUN apt-get -y update && apt-get -y install \
15     apt-utils \
16     curl \
17     vim
18
19 USER jetty
20
21 # install chef-solo
22 RUN curl -L https://omnitruck.chef.io/install.sh | bash