Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -10,9 +10,7 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
tesseract-ocr \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
# COPY requirements.txt ./
|
16 |
|
17 |
RUN pip install -r requirements.txt --no-cache-dir
|
18 |
|
@@ -27,6 +25,8 @@ WORKDIR $HOME/app
|
|
27 |
|
28 |
COPY --chown=user . $HOME/app
|
29 |
|
|
|
|
|
30 |
# COPY models/checkpoints ./models/checkpoints
|
31 |
# COPY core ./core
|
32 |
# COPY data ./data
|
@@ -37,4 +37,4 @@ COPY --chown=user . $HOME/app
|
|
37 |
|
38 |
# EXPOSE 7860
|
39 |
|
40 |
-
CMD ["uvicorn", "
|
|
|
10 |
tesseract-ocr \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
+
COPY requirements.txt ./
|
|
|
|
|
14 |
|
15 |
RUN pip install -r requirements.txt --no-cache-dir
|
16 |
|
|
|
25 |
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
28 |
+
RUN git clone https://gitlab.com/abijithe61/yol-ov-4-tf-lite-for-generic-invoice-reader.git .
|
29 |
+
|
30 |
# COPY models/checkpoints ./models/checkpoints
|
31 |
# COPY core ./core
|
32 |
# COPY data ./data
|
|
|
37 |
|
38 |
# EXPOSE 7860
|
39 |
|
40 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|