diff --git a/Dockerfile b/Dockerfile index 86b2976..a4ce87f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,10 @@ WORKDIR /app COPY requirements.txt . -# Install gcc temporarily until wheels for httptools on Python 3.12 are available -RUN apt-get update && apt-get install -y gcc libmagic1 +RUN apt-get update && apt-get install -y libmagic1 && rm -rf /var/lib/apt/lists/* RUN --mount=type=cache,target=/root/.cache pip install -r requirements.txt -# Install deps to build uvloop until wheels are released -RUN apt-get install -y automake git libtool-bin libuv1-dev make && rm -rf /var/lib/apt/lists/* - -RUN --mount=type=cache,target=/root/.cache pip install setuptools - -RUN --mount=type=cache,target=/root/.cache pip install 'uvloop@git+https://github.com/MagicStack/uvloop.git@9f82bd7' - COPY . . EXPOSE 8501 diff --git a/requirements.txt b/requirements.txt index 9d8f44e..eb83996 100644 --- a/requirements.txt +++ b/requirements.txt @@ -32,5 +32,6 @@ typing_extensions==4.8.0 ujson==5.8.0 urllib3==2.0.6 uvicorn==0.23.2 +uvloop==0.19.0 watchfiles==0.20.0 websockets==11.0.3