From e7c965cc46b15344ea2e51f92dc11b0564a2a2c3 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Fri, 18 Jun 2021 12:59:39 +0200 Subject: [PATCH] add dep for armv7 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 22223a9..2056f8d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM python:3-slim COPY . /psa_car_controller/ WORKDIR /config -RUN pip3 install --no-cache-dir -r /psa_car_controller/requirements.txt +RUN [ "$TARGETPLATFORM" = "linux/arm/v7" ] && apk update && apk add python3-dev gcc libc-dev; \ + 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"