From 898e5ca866e6c7e07ed7b7bc6accaba0f726e900 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 17 Jul 2023 22:45:49 +0100 Subject: [PATCH] getting pyyaml fixed --- backend/docker/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/docker/Dockerfile b/backend/docker/Dockerfile index 4c694c6f..0c05c635 100644 --- a/backend/docker/Dockerfile +++ b/backend/docker/Dockerfile @@ -11,10 +11,14 @@ WORKDIR /app # Install system dependencies RUN apk update && apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo netcat-openbsd + # Install python dependencies +# This is required to install pyyaml==6.0 with the alpine image, it's still in the requirements file +# but will be skipped over since we've already installed it here COPY ./requirements/base.txt ./requirements/base.txt RUN pip install --upgrade pip -RUN pip install "cython<3.0.0" && pip install --no-build-isolation pyyaml==6.0 +RUN pip install "cython<3.0.0" +RUN pip install --no-build-isolation pyyaml==6.0 RUN pip install -r requirements/base.txt # Copy project