forked from alisen39/TrWebOCR
-
Notifications
You must be signed in to change notification settings - Fork 0
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
4 additions
and
2 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,11 +1,13 @@ | ||
FROM python:3.7.7-slim | ||
FROM python:3.7-slim | ||
|
||
COPY . ./TrWebOCR | ||
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 | ||
|
||
RUN /usr/local/bin/python -m pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
COPY ./requirements.txt ./TrWebOCR/ | ||
RUN pip install -r ./TrWebOCR/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple | ||
COPY . ./TrWebOCR | ||
|
||
RUN python ./TrWebOCR/install.py | ||
EXPOSE 8089 | ||
CMD ["supervisord","-c","/TrWebOCR/supervisord.conf"] |