Spaces:
Sleeping
Sleeping
Update Dockerfile for dill
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -9,10 +9,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 9 |
libgl1-mesa-glx \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Copy the requirements.txt file into the container
|
| 13 |
COPY requirements.txt /app/requirements.txt
|
| 14 |
|
| 15 |
-
# Install the required packages
|
| 16 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 17 |
|
| 18 |
# Copy the rest of the application code into the container
|
|
@@ -21,6 +24,7 @@ COPY . /app
|
|
| 21 |
# Set environment variables
|
| 22 |
ENV FLASK_APP=run.py
|
| 23 |
ENV FLASK_ENV=production
|
|
|
|
| 24 |
|
| 25 |
# Expose the port the app runs on
|
| 26 |
EXPOSE 7860
|
|
|
|
| 9 |
libgl1-mesa-glx \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
+
# Install dill package
|
| 13 |
+
RUN pip install dill
|
| 14 |
+
|
| 15 |
# Copy the requirements.txt file into the container
|
| 16 |
COPY requirements.txt /app/requirements.txt
|
| 17 |
|
| 18 |
+
# Install the required Python packages
|
| 19 |
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 20 |
|
| 21 |
# Copy the rest of the application code into the container
|
|
|
|
| 24 |
# Set environment variables
|
| 25 |
ENV FLASK_APP=run.py
|
| 26 |
ENV FLASK_ENV=production
|
| 27 |
+
ENV YOLO_CONFIG_DIR=/tmp
|
| 28 |
|
| 29 |
# Expose the port the app runs on
|
| 30 |
EXPOSE 7860
|