Abijith commited on
Commit
5718dde
·
1 Parent(s): d838702

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -18
Dockerfile CHANGED
@@ -10,35 +10,18 @@ RUN apt-get update && apt-get install -y \
10
  tesseract-ocr \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # COPY requirements.txt ./
14
- # RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git .
15
-
16
- # RUN pip install -r requirements.txt --no-cache-dir
17
-
18
  RUN useradd -m -u 1000 user
19
 
20
  USER user
21
 
22
- # RUN chmod 755 /workspace
23
-
24
  ENV HOME=/home/user \
25
  PATH=/home/user/.local/bin:$PATH
26
 
27
  WORKDIR $HOME/app
28
  RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git ./
29
  RUN pip install -r requirements.txt --no-cache-dir
30
- # COPY --chown=user . $HOME/app
31
 
 
32
  RUN echo $(ls)
33
 
34
- # COPY models/checkpoints ./models/checkpoints
35
- # COPY core ./core
36
- # COPY data ./data
37
- # COPY detections ./detections
38
- # COPY templates ./templates
39
- # COPY detect.py ./
40
- # COPY main.py ./
41
-
42
- # EXPOSE 7860
43
-
44
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  tesseract-ocr \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
 
13
  RUN useradd -m -u 1000 user
14
 
15
  USER user
16
 
 
 
17
  ENV HOME=/home/user \
18
  PATH=/home/user/.local/bin:$PATH
19
 
20
  WORKDIR $HOME/app
21
  RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git ./
22
  RUN pip install -r requirements.txt --no-cache-dir
 
23
 
24
+ # To verify the packages inside workspace
25
  RUN echo $(ls)
26
 
 
 
 
 
 
 
 
 
 
 
27
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]