Spaces:
Sleeping
Sleeping
apt command relocated
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
|
4 |
FROM python:3.11
|
5 |
|
|
|
6 |
RUN useradd -m -u 1000 user
|
7 |
USER user
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
@@ -11,7 +12,6 @@ WORKDIR /app
|
|
11 |
|
12 |
COPY --chown=user ./requirements.txt requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
-
RUN apt update && apt install -y poppler-utils tesseract-ocr
|
15 |
|
16 |
COPY --chown=user . /app
|
17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
3 |
|
4 |
FROM python:3.11
|
5 |
|
6 |
+
RUN apt update && apt install -y poppler-utils tesseract-ocr
|
7 |
RUN useradd -m -u 1000 user
|
8 |
USER user
|
9 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
12 |
|
13 |
COPY --chown=user ./requirements.txt requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
15 |
|
16 |
COPY --chown=user . /app
|
17 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|