feat: frontend remote download

This commit is contained in:
DDSRem
2023-08-11 10:42:44 +08:00
parent b1ef771222
commit 1c53a291fb
2 changed files with 15 additions and 27 deletions

View File

@ -1,4 +1,5 @@
FROM python:3.10.11-slim
ARG MOVIEPILOT_FRONTEND_VERSION
ENV LANG="C.UTF-8" \
HOME="/moviepilot" \
TERM="xterm" \
@ -41,9 +42,10 @@ RUN apt-get update \
gosu \
bash \
wget \
&& mkdir -p /etc/nginx ${HOME} \
curl \
busybox \
&& cp -f nginx.conf /etc/nginx/nginx.template.conf \
&& mv ./public / \
&& mkdir -p ${HOME} \
&& groupadd -r moviepilot -g 911 \
&& useradd -r moviepilot -g moviepilot -d ${HOME} -s /bin/bash -u 911 \
&& pip install --upgrade pip \
@ -54,6 +56,8 @@ RUN apt-get update \
&& 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 \
&& curl -sL "https://github.com/jxxghp/MoviePilot-Frontend/releases/download/v${MOVIEPILOT_FRONTEND_VERSION}/dist.zip" | busybox unzip -d / - \
&& mv /dist /public \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf \