From: Alexandru Antone Date: Wed, 18 Dec 2019 12:04:21 +0000 (+0200) Subject: Fix for missing dependencies X-Git-Tag: 3.0.0~23^2 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F2165%2F3;p=validation.git Fix for missing dependencies Also switch to python:3.6-alpine3.9 Signed-off-by: Alexandru Antone Change-Id: I615c30b107cdd64d24b19b4c2a52f2c157c4bdc6 --- diff --git a/bluval/Dockerfile b/bluval/Dockerfile index 08753f7..cf37c9f 100644 --- a/bluval/Dockerfile +++ b/bluval/Dockerfile @@ -15,16 +15,20 @@ ############################################################################## # ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds -FROM ubuntu:18.04 as build +FROM python:3.6-alpine3.9 -RUN apt-get update && apt-get -y install git python3-pip python3.6 +RUN apk --no-cache add --update \ + gcc \ + git \ + libc-dev \ + libffi \ + libffi-dev \ + make \ + openssl-dev # Build binaries RUN git clone https://gerrit.akraino.org/r/validation /opt/akraino/validation RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt -ENV LC_ALL=C.UTF-8 -ENV LANG=C.UTF-8 - WORKDIR /opt/akraino/validation -ENTRYPOINT ["python3", "bluval/blucon.py"] \ No newline at end of file +ENTRYPOINT ["python3", "bluval/blucon.py"]