feat: add moviepilot user

This commit is contained in:
DDSDerek 2023-07-29 00:35:52 +08:00 committed by GitHub
parent efd8ff6f28
commit 5914d5a05d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
FROM python:3.10.11-slim FROM python:3.10.11-slim
ENV LANG="C.UTF-8" \ ENV LANG="C.UTF-8" \
HOME="/moviepilot" \
TERM="xterm" \
TZ="Asia/Shanghai" \ TZ="Asia/Shanghai" \
PUID=0 \ PUID=0 \
PGID=0 \ PGID=0 \
@ -37,8 +39,11 @@ RUN apt-get update \
locales \ locales \
procps \ procps \
gosu \ gosu \
&& mkdir -p /etc/nginx \ bash \
&& mkdir -p /etc/nginx ${HOME} \
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \ && 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 -r requirements.txt \ && pip install -r requirements.txt \
&& python_ver=$(python3 -V | awk '{print $2}') \ && python_ver=$(python3 -V | awk '{print $2}') \
&& echo "/app/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \ && echo "/app/" > /usr/local/lib/python${python_ver%.*}/site-packages/app.pth \