👷 Docker separate build
Docker 分离构建
This commit is contained in:
parent
51dfdfa705
commit
d4bb2a54da
48
Dockerfile
48
Dockerfile
@ -1,50 +1,4 @@
|
||||
FROM ubuntu:hirsute
|
||||
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
|
||||
LANG=zh_CN.UTF-8 \
|
||||
SHELL=/bin/bash \
|
||||
PS1="\u@\h:\w \$ " \
|
||||
PAGERMAID_DIR=/pagermaid \
|
||||
DEBIAN_FRONTEND=noninteractive
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
RUN source ~/.bashrc \
|
||||
&& apt update \
|
||||
&& apt upgrade -y \
|
||||
&& apt install --no-install-recommends -y \
|
||||
software-properties-common \
|
||||
build-essential \
|
||||
sudo \
|
||||
python3 \
|
||||
python3-dev \
|
||||
python3-pip \
|
||||
python3-magic \
|
||||
python3-dateparser \
|
||||
tesseract-ocr \
|
||||
tesseract-ocr-eng \
|
||||
tesseract-ocr-chi-sim \
|
||||
git \
|
||||
openssl \
|
||||
redis-server \
|
||||
curl \
|
||||
wget \
|
||||
neofetch \
|
||||
imagemagick \
|
||||
ffmpeg \
|
||||
fortune-mod \
|
||||
figlet \
|
||||
libzbar-dev \
|
||||
libxslt1-dev \
|
||||
libxml2-dev \
|
||||
&& apt clean -y \
|
||||
&& apt autoclean -y
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone
|
||||
RUN ln -sf /usr/bin/python3 /usr/bin/python \
|
||||
&& python -m pip install --upgrade pip \
|
||||
&& pip install wheel \
|
||||
&& 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
|
||||
FROM mrwangzhe/pagermaid_os:latest
|
||||
USER pagermaid
|
||||
RUN mkdir /pagermaid/workdir
|
||||
RUN git clone -b master https://github.com/Xtao-Labs/PagerMaid-Modify.git /pagermaid/workdir
|
||||
|
Loading…
Reference in New Issue
Block a user