👷 Fix docker automatic update

This commit is contained in:
Xtao_dada 2021-04-17 22:54:31 +08:00 committed by GitHub
parent c9c3cc5dd5
commit 51dfdfa705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
RUN ln -sf /usr/bin/python3 /usr/bin/python \
&& python -m pip install --upgrade pip \
&& pip install wheel \
&& pip install eyed3 pycryptodome
&& rm -rf /pagermaid/.cache
RUN echo "pagermaid ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/pagermaid
RUN useradd pagermaid -r -m -d /pagermaid
RUN usermod -aG sudo,users pagermaid
@ -50,5 +50,5 @@ RUN mkdir /pagermaid/workdir
RUN git clone -b master https://github.com/Xtao-Labs/PagerMaid-Modify.git /pagermaid/workdir
WORKDIR /pagermaid/workdir
RUN python -m pip install -r requirements.txt \
&& sudo rm -rf /root/.cache
&& rm -rf /pagermaid/.cache
CMD ["sh","utils/docker-run.sh"]