From 22c268067c3200cf47a5a999b97efaa9f60e03b6 Mon Sep 17 00:00:00 2001 From: Christoph Gerum Date: Fri, 23 Aug 2024 10:14:06 +0200 Subject: [PATCH] Fix docker file --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 586beda2..d2add4ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,14 +29,19 @@ FROM python:${python_version} as python FROM ${target} +ARG python_version +ARG target + RUN if [ "$target" = "hannah" ] || [ "$target" = "mlonmcu" ]; then\ apt-get update -y && apt-get -y install git mesa-utils python3 python3-pip python3-dev libblas-dev liblapack-dev libsndfile1-dev libsox-dev cmake ninja-build curl build-essential python-is-python3; \ else \ apt-get update -y && apt-get -y install git mesa-utils libblas-dev liblapack-dev libsndfile1-dev libsox-dev cmake ninja-build curl build-essential; \ fi +RUN echo "Target: $target" + # Install poetry using recommended method -RUN pip3 install poetry +RUN pip install poetry # Copy only requirements to cache them in docker layer