From 970b8701bae2a38ee33b4069ecc9df6daff0866b Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Thu, 24 Jun 2021 11:06:33 +0200 Subject: [PATCH] add gcc for arm64 --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7020051..12b7e98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,13 @@ FROM python:3-slim ARG TARGETPLATFORM COPY . /psa_car_controller/ WORKDIR /config -RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then apt-get update && apt-get install -y gcc && 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 2> /dev/null ; \ - apt-get autoremove -y +RUN if [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$TARGETPLATFORM" = "linux/arm64" ]; then \ + apt-get update && apt-get install -y gcc && 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 2> /dev/null ; \ + apt-get autoremove -y 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"