2021-04-17 12:17:56 +00:00
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
libfreetype-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libopenblas-dev \
|
|
|
|
liblapack-dev \
|
|
|
|
libpqxx-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 \
|
|
|
|
&& pip install eyed3 pycryptodome
|
2020-02-19 15:31:39 +00:00
|
|
|
RUN sed -e 's;^# \(%wheel.*NOPASSWD.*\);\1;g' -i /etc/sudoers
|
|
|
|
RUN useradd pagermaid -r -m -d /pagermaid
|
|
|
|
RUN usermod -aG wheel,users pagermaid
|
|
|
|
USER pagermaid
|
2021-04-17 12:17:56 +00:00
|
|
|
RUN mkdir /pagermaid
|
|
|
|
RUN git clone -b master https://github.com/Xtao-Labs/PagerMaid-Modify.git /pagermaid
|
|
|
|
WORKDIR /pagermaid
|
|
|
|
RUN pip -m pip install -r requirements.txt
|
|
|
|
RUN sudo rm -rf /root/.cache
|
2020-04-04 06:19:33 +00:00
|
|
|
CMD ["sh","utils/docker-run.sh"]
|