Spaces:
Running
Running
Commit
•
8aa3bd5
1
Parent(s):
481b20f
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -7,6 +7,7 @@ COPY --link --chown=1000 . .
|
|
7 |
|
8 |
RUN mkdir -p /tmp/cache/
|
9 |
RUN chmod a+rwx -R /tmp/cache/
|
|
|
10 |
ENV TRANSFORMERS_CACHE=/tmp/cache/
|
11 |
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
@@ -14,3 +15,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
14 |
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
15 |
|
16 |
CMD ["python", "app.py"]
|
|
|
|
7 |
|
8 |
RUN mkdir -p /tmp/cache/
|
9 |
RUN chmod a+rwx -R /tmp/cache/
|
10 |
+
RUN apt-get update && apt-get install -y poppler-utils tesseract-ocr chromium
|
11 |
ENV TRANSFORMERS_CACHE=/tmp/cache/
|
12 |
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
15 |
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
16 |
|
17 |
CMD ["python", "app.py"]
|
18 |
+
|