playwright install

This commit is contained in:
jxxghp 2023-06-09 19:32:20 +08:00
parent 6925dde254
commit e6f51be105

View File

@ -43,7 +43,8 @@ RUN apt-get update \
&& echo "${WORKDIR}/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \ && 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_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 \
&& rm -rf /root/.cache/ && rm -rf /root/.cache/ \
&& playwright install --with-deps chromium
EXPOSE 3001 EXPOSE 3001
VOLUME ["/config"] VOLUME ["/config"]
ENTRYPOINT [ "python3", "app/main.py" ] ENTRYPOINT [ "python3", "app/main.py" ]