From fc88af25dfb70c29c65c956398b5ea3acce48a91 Mon Sep 17 00:00:00 2001 From: Mariusz Wagner Date: Mon, 3 Sep 2018 12:27:27 +0200 Subject: Docker file refactor Changed base image in docker file Issue-ID: INT-642 Change-Id: I15a0ec89697322ff278039af0a94b8af3e173625 Signed-off-by: Mariusz Wagner --- test/csit/tests/vid/resources/simulators/SDC_simulator | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/csit/tests/vid/resources/simulators/SDC_simulator b/test/csit/tests/vid/resources/simulators/SDC_simulator index ec67e9fec..c099787dc 100644 --- a/test/csit/tests/vid/resources/simulators/SDC_simulator +++ b/test/csit/tests/vid/resources/simulators/SDC_simulator @@ -1,4 +1,12 @@ -FROM python:3 +FROM alpine:latest + +RUN apk add --no-cache python3 && \ + python3 -m ensurepip && \ + rm -r /usr/lib/python*/ensurepip && \ + pip3 install --upgrade pip setuptools && \ + if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \ + if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \ + rm -r /root/.cache ADD SDC.py / -- cgit 1.2.3-korg