From 8b9787e27f747381443b7f785f723e58a482d3a3 Mon Sep 17 00:00:00 2001 From: Alexandru Antone Date: Wed, 18 Dec 2019 14:04:21 +0200 Subject: [PATCH] Fix for missing dependencies Also switch to python:3.6-alpine3.9 Signed-off-by: Alexandru Antone Change-Id: I615c30b107cdd64d24b19b4c2a52f2c157c4bdc6 --- bluval/Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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"] -- 2.16.6