Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.12
|
3 |
-
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR $HOME/app
|
6 |
|
@@ -11,8 +11,9 @@ RUN apt-get install -y libtesseract-dev
|
|
11 |
RUN apt-get install -y libgl1-mesa-glx
|
12 |
RUN apt-get install -y libglib2.0-0
|
13 |
RUN pip install --upgrade pip
|
14 |
-
RUN pip install gradio pytesseract Pillow
|
15 |
-
|
|
|
16 |
# Copy the current directory contents into the container at /app
|
17 |
#COPY . /app
|
18 |
# Copy your app code
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.12
|
3 |
+
ENV PIP_ROOT_USER_ACTION=ignore
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR $HOME/app
|
6 |
|
|
|
11 |
RUN apt-get install -y libgl1-mesa-glx
|
12 |
RUN apt-get install -y libglib2.0-0
|
13 |
RUN pip install --upgrade pip
|
14 |
+
# RUN pip install gradio pytesseract Pillow
|
15 |
+
COPY requirements.txt requirements.txt
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
# Copy the current directory contents into the container at /app
|
18 |
#COPY . /app
|
19 |
# Copy your app code
|