Shami96 commited on
Commit
e1181ec
·
verified ·
1 Parent(s): d84422d

Delete Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -55
Dockerfile DELETED
@@ -1,55 +0,0 @@
1
- FROM pytorch/pytorch:2.4.0-cuda11.8-cudnn9-runtime
2
- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
3
-
4
- RUN apt-get update
5
- RUN apt-get install --fix-missing -y -q --no-install-recommends libgomp1 ffmpeg libsm6 pdftohtml libxext6 git ninja-build g++ qpdf pandoc
6
-
7
-
8
- RUN apt-get install -y ocrmypdf
9
- RUN apt-get install -y tesseract-ocr-fra
10
- RUN apt-get install -y tesseract-ocr-spa
11
- RUN apt-get install -y tesseract-ocr-deu
12
- RUN apt-get install -y tesseract-ocr-ara
13
- RUN apt-get install -y tesseract-ocr-mya
14
- RUN apt-get install -y tesseract-ocr-hin
15
- RUN apt-get install -y tesseract-ocr-tam
16
- RUN apt-get install -y tesseract-ocr-tha
17
- RUN apt-get install -y tesseract-ocr-chi-sim
18
- RUN apt-get install -y tesseract-ocr-tur
19
- RUN apt-get install -y tesseract-ocr-ukr
20
- RUN apt-get install -y tesseract-ocr-ell
21
- RUN apt-get install -y tesseract-ocr-rus
22
- RUN apt-get install -y tesseract-ocr-kor
23
- RUN apt-get install -y tesseract-ocr-kor-vert
24
-
25
-
26
- RUN mkdir -p /app/src
27
- RUN mkdir -p /app/models
28
-
29
- RUN addgroup --system python && adduser --system --group python
30
- RUN chown -R python:python /app
31
- USER python
32
-
33
- ENV VIRTUAL_ENV=/app/.venv
34
- RUN python -m venv $VIRTUAL_ENV
35
- ENV PATH="$VIRTUAL_ENV/bin:$PATH"
36
-
37
- COPY requirements.txt requirements.txt
38
- RUN uv pip install --upgrade pip
39
- RUN uv pip install -r requirements.txt
40
-
41
- WORKDIR /app
42
-
43
- RUN cd src; git clone https://github.com/facebookresearch/detectron2;
44
- RUN cd src/detectron2; git checkout 70f454304e1a38378200459dd2dbca0f0f4a5ab4; python setup.py build develop
45
- RUN uv pip install pycocotools==2.0.8
46
-
47
- COPY ./start.sh ./start.sh
48
- COPY ./src/. ./src
49
- COPY ./models/. ./models/
50
- RUN python src/download_models.py
51
-
52
- ENV PYTHONPATH "${PYTHONPATH}:/app/src"
53
- ENV TRANSFORMERS_VERBOSITY=error
54
- ENV TRANSFORMERS_NO_ADVISORY_WARNINGS=1
55
-