feat: optimize the build process
This commit is contained in:
parent
27b386c637
commit
4fe4d928ed
@ -40,17 +40,18 @@ RUN apt-get update \
|
||||
procps \
|
||||
gosu \
|
||||
bash \
|
||||
&& playwright install-deps chromium \
|
||||
&& mkdir -p /etc/nginx ${HOME} \
|
||||
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \
|
||||
&& groupadd -r moviepilot -g 911 \
|
||||
&& useradd -r moviepilot -g moviepilot -d ${HOME} -s /bin/bash -u 911 \
|
||||
&& pip install --upgrade pip \
|
||||
&& pip install -r requirements.txt \
|
||||
&& python_ver=$(python3 -V | awk '{print $2}') \
|
||||
&& echo "/app/" > /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 \
|
||||
&& locale-gen zh_CN.UTF-8 \
|
||||
&& playwright install-deps chromium \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf \
|
||||
|
Loading…
x
Reference in New Issue
Block a user