diff options
author | Shankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com> | 2020-03-20 14:49:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-20 14:49:44 +0000 |
commit | 420f4b3a4ca25d5de5c9318b2ca89e1ef126b278 (patch) | |
tree | 5aa3a38e453d999a6ab0704c2651a08520088a19 /docker/opteng | |
parent | fa538d59b8982a48fd58f024a30a59616d43cf81 (diff) | |
parent | 6f3312c6576eefdbac120214b1adc0f150b72d98 (diff) |
Merge "fix csit, cleanup dockerfile for osdf"
Diffstat (limited to 'docker/opteng')
-rw-r--r-- | docker/opteng/Dockerfile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docker/opteng/Dockerfile b/docker/opteng/Dockerfile index 9dca3e7..bd58f35 100644 --- a/docker/opteng/Dockerfile +++ b/docker/opteng/Dockerfile @@ -38,8 +38,10 @@ ENV MZN_DL_URL ${MZN_GH_BASE}/releases/download/${MZN}/${MZN_BASENAME}-x86_64.tg RUN apk update && apk upgrade \ && apk --no-cache --update add --virtual build-deps openssl wget \ && apk --no-cache --update add less ca-certificates bash libxslt-dev unzip \ - freetype freetype-dev libstdc++ build-base libc6-compat \ - && ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 + freetype freetype-dev libstdc++ build-base libc6-compat lapack-dev openblas-dev \ + && ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 \ + && pip install --no-cache-dir --upgrade pip wheel setuptools \ + && pip install --no-cache-dir Cython numpy==1.17.3 scipy==1.3.1 # Minizinc RUN wget -q $MZN_DL_URL -O mz.tgz \ @@ -49,7 +51,7 @@ RUN wget -q $MZN_DL_URL -O mz.tgz \ && echo PATH=/mz-dist/bin:$PATH >> ~/.bashrc ENV SHELL /bin/bash -ENV PATH /mz-dist:$PATH +ENV PATH /mz-dist/bin:$PATH RUN addgroup -S onap && adduser -S -G onap onap @@ -67,7 +69,8 @@ RUN mkdir -p /var/log/onap/optf/osdf/ \ && chown onap:onap /var/log/onap -R \ && chown onap:onap /opt/osdf -R -RUN pip install --no-cache-dir -r requirements.txt -r requirements-opteng.txt +RUN pip install --no-cache-dir -r requirements.txt -r requirements-opteng.txt\ + && apk del build-deps && rm -rf /var/cache/apk/* USER onap |