Spaces:
Build error
Build error
Rename Dockerfile to dockerfile
Browse files- Dockerfile → dockerfile +10 -6
Dockerfile → dockerfile
RENAMED
@@ -1,18 +1,22 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
# Install
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
tesseract-ocr \
|
6 |
libtesseract-dev \
|
7 |
-
pkg-config \
|
8 |
&& rm -rf /var/lib/apt/lists/*
|
9 |
|
10 |
-
#
|
11 |
-
COPY . /app
|
12 |
WORKDIR /app
|
13 |
|
|
|
|
|
|
|
14 |
# Install Python dependencies
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
-
#
|
18 |
-
|
|
|
|
|
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
RUN apt-get update && apt-get install -y \
|
5 |
tesseract-ocr \
|
6 |
libtesseract-dev \
|
|
|
7 |
&& rm -rf /var/lib/apt/lists/*
|
8 |
|
9 |
+
# Set the working directory
|
|
|
10 |
WORKDIR /app
|
11 |
|
12 |
+
# Copy the requirements.txt file
|
13 |
+
COPY requirements.txt ./
|
14 |
+
|
15 |
# Install Python dependencies
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
|
18 |
+
# Copy the rest of the application code
|
19 |
+
COPY . .
|
20 |
+
|
21 |
+
# Run the Gradio app
|
22 |
+
CMD ["python", "app.py"]
|