-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
FROM python:3.7-slim | ||
|
||
RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list | ||
RUN apt update && apt install -y libglib2.0-dev libsm6 libxrender1 libxext-dev supervisor build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
COPY ./requirements.txt ./TrWebOCR/ | ||
RUN pip3 install -r ./TrWebOCR/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ | ||
COPY . ./TrWebOCR | ||
|
||
RUN python3 ./TrWebOCR/install.py | ||
RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list \ | ||
&& apt update && apt install -y libglib2.0-dev libsm6 libxrender1 libxext-dev supervisor build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple \ | ||
&& pip3 install -r ./TrWebOCR/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ \ | ||
&& python3 ./TrWebOCR/install.py | ||
EXPOSE 8089 | ||
CMD ["supervisord","-c","/TrWebOCR/supervisord.conf"] |