Skip to content

Commit

Permalink
Fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
cgerum committed Aug 23, 2024
1 parent 90862f8 commit 22c2680
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22c2680

Please sign in to comment.