##############################################################################
# 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"]