This commit is contained in:
jxxghp 2023-06-07 14:50:05 +08:00
parent 0dd8f3f238
commit bfa129d6a4
2 changed files with 1 additions and 3 deletions

View File

@ -1,5 +1,4 @@
FROM python:3.10.11-alpine3.17 FROM python:3.10.11-alpine3.17
RUN apk update && apk add --no-cache gcc
ENV LANG="C.UTF-8" \ ENV LANG="C.UTF-8" \
TZ="Asia/Shanghai" \ TZ="Asia/Shanghai" \
PS1="\u@\h:\w \$ " \ PS1="\u@\h:\w \$ " \
@ -33,7 +32,7 @@ ENV LANG="C.UTF-8" \
DOUBAN_USER_IDS="" DOUBAN_USER_IDS=""
WORKDIR ${WORKDIR} WORKDIR ${WORKDIR}
COPY . . 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_watches=5242880' >> /etc/sysctl.conf \
&& echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf
EXPOSE 3001 EXPOSE 3001

View File

@ -1,4 +1,3 @@
cython~=0.29.24
pydantic~=1.10.8 pydantic~=1.10.8
SQLAlchemy~=2.0.15 SQLAlchemy~=2.0.15
uvicorn~=0.22.0 uvicorn~=0.22.0