feat: frontend remote download
This commit is contained in:
@ -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 \
|
||||
|
Reference in New Issue
Block a user