diff --git a/Dockerfile.server b/Dockerfile.server index 37522f99..33c646bb 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -1,8 +1,7 @@ # Export packages from poetry and save # to venv to avoid building them later -FROM python:3.11-slim-bullseye as deps +FROM python:3.10-slim-bullseye as deps ENV VIRTUAL_ENV=/opt/venv -RUN "apt install -y build-essentials" RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" COPY . . @@ -11,7 +10,7 @@ RUN poetry export --without-hashes -o requirements.txt RUN pip install -r requirements.txt # Python Protobuf Server -FROM python:3.11-slim-bullseye as server +FROM python:3.10-slim-bullseye as server WORKDIR /app ENV LC_ALL=C.UTF-8 ENV LANG=C.UTF-8