Spaces:
Sleeping
Sleeping
Commit ·
21e4da6
1
Parent(s): 34064c6
font config cache
Browse files- Dockerfile +1 -1
- codes/utils.py +1 -1
Dockerfile
CHANGED
|
@@ -16,7 +16,7 @@ COPY requirements.txt /tmp/
|
|
| 16 |
RUN pip install -r /tmp/requirements.txt
|
| 17 |
RUN pip install rpy2==3.5.11
|
| 18 |
ENV MPLCONFIGDIR /tmp/matplotlib_cache
|
| 19 |
-
ENV FONTCONFIGDIR /tmp/
|
| 20 |
ENV HOME=/homep
|
| 21 |
|
| 22 |
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
|
|
|
|
| 16 |
RUN pip install -r /tmp/requirements.txt
|
| 17 |
RUN pip install rpy2==3.5.11
|
| 18 |
ENV MPLCONFIGDIR /tmp/matplotlib_cache
|
| 19 |
+
ENV FONTCONFIGDIR /tmp/
|
| 20 |
ENV HOME=/homep
|
| 21 |
|
| 22 |
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
|
codes/utils.py
CHANGED
|
@@ -6,7 +6,7 @@ import pickle
|
|
| 6 |
from matplotlib.patches import Patch
|
| 7 |
#from rpy2.robjects import conversion, default_converter
|
| 8 |
os.environ['MPLCONFIGDIR'] = '/tmp/matplotlib_cache'
|
| 9 |
-
|
| 10 |
|
| 11 |
|
| 12 |
import matplotlib.pyplot as plt
|
|
|
|
| 6 |
from matplotlib.patches import Patch
|
| 7 |
#from rpy2.robjects import conversion, default_converter
|
| 8 |
os.environ['MPLCONFIGDIR'] = '/tmp/matplotlib_cache'
|
| 9 |
+
os.environ['FONTCONFIG_CACHE'] = '/tmp/fontconfig_cache'
|
| 10 |
|
| 11 |
|
| 12 |
import matplotlib.pyplot as plt
|