diff --git a/Dockerfile b/Dockerfile index a60e7bfb..279f58d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ FROM python:3.10.11-alpine3.17 -RUN apk update && apk add --no-cache gcc ENV LANG="C.UTF-8" \ TZ="Asia/Shanghai" \ PS1="\u@\h:\w \$ " \ @@ -33,7 +32,7 @@ ENV LANG="C.UTF-8" \ DOUBAN_USER_IDS="" WORKDIR ${WORKDIR} COPY . . -RUN python3 -m pip install -r requirements.txt \ +RUN pip install cython && pip install -r requirements.txt \ && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf \ && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf EXPOSE 3001 diff --git a/requirements.txt b/requirements.txt index 611c6cf5..08df228a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -cython~=0.29.24 pydantic~=1.10.8 SQLAlchemy~=2.0.15 uvicorn~=0.22.0