6 ENV HTTP_PROXY ${HTTP_PROXY}
7 ENV HTTPS_PROXY ${HTTPS_PROXY}
9 RUN if [ ! -z ${HTTP_PROXY} ]; then echo "Acquire::http::proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf; fi && \
10 RUN apt-get -y update && \
11 apt-get -y install --no-install-recommends apt-utils && \
12 apt-get install curl \
16 update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
17 if [ ! -z ${HTTPS_PROXY} ]; then echo "Acquire::https::proxy \"${HTTPS_PROXY}\";" >> /etc/apt/apt.conf; fi
19 COPY chef-solo /root/chef-solo/
20 COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
23 RUN curl -L https://omnitruck.chef.io/install.sh | bash
25 COPY startup.sh /root/
26 RUN chmod 770 /root/startup.sh
28 ENTRYPOINT [ "/root/startup.sh" ]