314a137cde72e868c0db99d907fefddbf4ad9d2c
[sdc/sdc-docker-base.git] / base_sdc-python / Dockerfile
1 FROM nexus3.onap.org:10001/onap/integration-python:8.0.0
2
3 USER root
4
5 # Needed for pycurl
6 ENV PYCURL_SSL_LIBRARY=openssl
7
8 # Install packages only needed for building
9 RUN apk update && \
10     apk add binutils jq libpng && \
11     apk add --no-cache \
12         libcurl \
13         jq \
14         bash \
15         ruby=2.7.2-r1 && \
16     apk add --no-cache --virtual .build-dependencies \
17         libressl-dev \
18         ruby-dev \
19         libffi-dev \
20         libxml2-dev \
21         build-base \
22         curl-dev && \
23     # needed libcurl to install correctly
24     pip install --no-cache-dir 'pycurl==7.43.0.1' &&  \
25         set -ex && \
26     gem install \
27         chef:13.8.5 \
28         berkshelf:6.3.1 \
29         io-console:0.4.6 \
30         etc webrick \
31         --no-document && \
32     apk del .build-dependencies
33
34 # user/group are the same as in integration/docker/onap-python base image
35 ENV user=onap group=onap
36
37 USER $user