Fix for missing dependencies 65/2165/3
authorAlexandru Antone <Alexandru.Antone@enea.com>
Wed, 18 Dec 2019 12:04:21 +0000 (14:04 +0200)
committerAlexandru Antone <Alexandru.Antone@enea.com>
Wed, 18 Dec 2019 13:23:27 +0000 (15:23 +0200)
Also switch to python:3.6-alpine3.9

Signed-off-by: Alexandru Antone <Alexandru.Antone@enea.com>
Change-Id: I615c30b107cdd64d24b19b4c2a52f2c157c4bdc6

bluval/Dockerfile

index 08753f7..cf37c9f 100644 (file)
 ##############################################################################
 
 # 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"]