The docker client binary mounted from the host is not compatible
with Alpine Linux for certain host distros.
Signed-off-by: Alexandru Antone <Alexandru.Antone@enea.com>
Change-Id: Iec10dea423adc32f2b9f651043e30a2aa02c7d76
##############################################################################
# ref: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#use-multi-stage-builds
-FROM python:3.6-alpine3.9
+FROM python:3.6-alpine3.10
RUN apk --no-cache add --update \
gcc \
git \
+ docker-cli \
libc6-compat \
libc-dev \
libffi \
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
- -v /usr/bin/docker:/usr/bin/docker \
-v $AKRAINO_HOME/results:/opt/akraino/results \
-v $AKRAINO_HOME/validation:/opt/akraino/validation \
akraino/validation:blucon-$image_tag "$@"