From bf01ccc5a330d782f904c988462012bed8f39b78 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 7 Jun 2023 13:15:45 +0800 Subject: [PATCH] fix dockerfile --- docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index d17c60bb..21a4c638 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,8 +5,10 @@ RUN apk add --no-cache --virtual .build-deps \ musl-dev \ libxml2-dev \ libxslt-dev \ + python3-dev \ + py3-pip \ && ln -sf /usr/bin/python3 /usr/bin/python \ - && python -m pip install --upgrade pip setuptools wheel \ + && pip install --upgrade pip setuptools wheel \ && apk del --purge .build-deps \ && rm -rf /tmp/* /root/.cache /var/cache/apk/* ENV LANG="C.UTF-8" \ @@ -42,7 +44,7 @@ ENV LANG="C.UTF-8" \ DOUBAN_USER_IDS="" COPY . /${WORKDIR} WORKDIR ${WORKDIR} -RUN python -m pip install -r requirements.txt \ +RUN 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