fix dockerfile

This commit is contained in:
jxxghp
2023-06-11 09:45:44 +08:00
parent d6811b798e
commit 7d7ab6c51c
2 changed files with 8 additions and 3 deletions

View File

@ -41,8 +41,7 @@ RUN apt-get update \
&& echo "${WORKDIR}/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \
&& echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf \
&& echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf \
&& rm -rf /root/.cache/ \
&& playwright install --with-deps chromium
&& rm -rf /root/.cache/
EXPOSE 3001
VOLUME ["/config"]
ENTRYPOINT [ "python3", "app/main.py" ]
ENTRYPOINT [ "start.sh" ]

6
start.sh Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/sh
umask ${UMASK}
echo "开始下载浏览器 ..."
playwright install --with-deps chromium
python3 app/main.py