Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 1 | FROM jetty:9.3-jre8-alpine |
| 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 apk add --no-cache \ |
| 15 | jq \ |
| 16 | curl \ |
| 17 | curl-dev \ |
| 18 | openssl-dev \ |
| 19 | python \ |
| 20 | python-dev \ |
| 21 | py-pip \ |
| 22 | py-setuptools \ |
| 23 | vim \ |
| 24 | && : |
| 25 | |
| 26 | # Install Chef |
| 27 | RUN set -ex && \ |
| 28 | apk add --no-cache bash build-base ruby ruby-dev libffi-dev libxml2-dev && \ |
| 29 | gem install chef berkshelf io-console --no-document |
| 30 | |
| 31 | RUN pip install pycurl |
| 32 | |
Areli, Fuss (af732p) | 87faf9c | 2018-03-25 14:22:44 +0300 | [diff] [blame^] | 33 | COPY set_user.sh /tmp/set_user.sh |
| 34 | |
| 35 | RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh |
| 36 | |
Areli Fuss | 0a3899f | 2017-11-19 13:28:08 +0200 | [diff] [blame] | 37 | USER jetty |
| 38 | |