From 36286ed03aedd0d7988aa73e17c058cb7607e6a3 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 26 Jun 2021 07:39:47 +0200 Subject: [PATCH] install dep from debian repo --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8463576..ee79571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,11 @@ FROM python:3-slim ARG TARGETPLATFORM COPY . /psa_car_controller/ WORKDIR /config -RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ - apt-get update && apt-get install -y gcc g++ && apt-get clean ; \ - rm -rf /var/lib/apt/lists/* ; \ - fi ; \ - pip3 install --no-cache-dir -r /psa_car_controller/requirements.txt && \ - apt-get remove -y gcc g++ 2> /dev/null ; \ - apt-get autoremove -y +RUN apt-get update && apt-get install -y python3-typing-extensions python3-pandas python3-plotly python3-paho-mqtt \ + python3-six python3-dateutil python3-brotli libblas-dev liblapack-dev gfortran python3-pycryptodome \ + libatlas3-base python3-cryptography && \ + apt-get clean && rm -rf /var/lib/apt/lists/* +RUN pip3 install --no-cache-dir -r /psa_car_controller/requirements.txt EXPOSE 5000 -RUN chmod +x /psa_car_controller/docker_files/init.sh ENV PSACC_BASE_PATH=/ PSACC_PORT=5000 PSACC_OPTIONS="-c -r --web-conf" PSACC_CONFIG_DIR="/config" CMD /psa_car_controller/docker_files/init.sh