diff --git a/backend/docker/Dockerfile b/backend/docker/Dockerfile index c3512f5b..4c694c6f 100644 --- a/backend/docker/Dockerfile +++ b/backend/docker/Dockerfile @@ -1,5 +1,5 @@ # Pull base image -FROM python:3.10.12-alpine3.18 +FROM python:3.10.12-alpine # Set environment variables ENV PYTHONDONTWRITEBYTECODE 1 @@ -9,11 +9,12 @@ ENV PYTHONUNBUFFERED 1 WORKDIR /app # Install system dependencies -RUN apt-get update && apt-get install -y netcat-openbsd +RUN apk update && apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo netcat-openbsd # Install python dependencies 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 -r requirements/base.txt # Copy project diff --git a/backend/requirements/base.txt b/backend/requirements/base.txt index 5ea3ef76..8735fc6e 100644 --- a/backend/requirements/base.txt +++ b/backend/requirements/base.txt @@ -15,13 +15,3 @@ PyJWT==2.7.0 python-dotenv==1.0.0 python-jose==3.3.0 PyYAML==6.0 -rsa==4.9 -six==1.16.0 -sniffio==1.3.0 -starlette==0.27.0 -typing_extensions==4.7.1 -uvicorn==0.22.0 -uvloop==0.17.0 -watchfiles==0.19.0 -websockets==11.0.3 -boto3 \ No newline at end of file