Replace base to alpine
[sdc/sdc-docker-base.git] / base_sdc-elasticsearch / Dockerfile
1 FROM elasticsearch:2.4.6-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 RUN apk add --no-cache \
13     curl \
14     vim \
15     && :
16
17 RUN mkdir -p /var/chef/nodes
18
19 # Install Chef
20 RUN set -ex && \
21     apk add --no-cache bash build-base ruby ruby-dev libffi-dev libxml2-dev && \
22     gem install chef berkshelf io-console --no-document