Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -10,9 +10,11 @@ RUN apt-get update && apt-get install -y git
|
|
| 10 |
# Clone the repository from GitHub
|
| 11 |
RUN git clone https://github.com/leoncool23/testhg.git .
|
| 12 |
|
|
|
|
|
|
|
|
|
|
| 13 |
# Set the MPLCONFIGDIR environment variable
|
| 14 |
ENV MPLCONFIGDIR=/app/matplotlib_config
|
| 15 |
-
|
| 16 |
# Install the required Python packages
|
| 17 |
COPY requirements.txt .
|
| 18 |
RUN pip install -r requirements.txt
|
|
|
|
| 10 |
# Clone the repository from GitHub
|
| 11 |
RUN git clone https://github.com/leoncool23/testhg.git .
|
| 12 |
|
| 13 |
+
# Create a directory for Matplotlib's configuration
|
| 14 |
+
RUN mkdir -p /app/matplotlib_config
|
| 15 |
+
|
| 16 |
# Set the MPLCONFIGDIR environment variable
|
| 17 |
ENV MPLCONFIGDIR=/app/matplotlib_config
|
|
|
|
| 18 |
# Install the required Python packages
|
| 19 |
COPY requirements.txt .
|
| 20 |
RUN pip install -r requirements.txt
|