Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +23 -16
Dockerfile
CHANGED
|
@@ -1,16 +1,23 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
USER root
|
| 6 |
+
|
| 7 |
+
# Upgrade pip first
|
| 8 |
+
RUN pip install --upgrade pip
|
| 9 |
+
|
| 10 |
+
# Copy the requirements file
|
| 11 |
+
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
# Install the dependencies
|
| 16 |
+
RUN pip install --no-cache-dir -r /code/requirements.txt
|
| 17 |
+
|
| 18 |
+
# Install EasyOCR dependencies
|
| 19 |
+
# Copy the rest of the application code
|
| 20 |
+
COPY . /code
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
CMD ["python", "app.py"]
|