jenniferzhou33 commited on
Commit
aa4809c
·
1 Parent(s): 3256059
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. codes/utils.py +1 -1
Dockerfile CHANGED
@@ -16,6 +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
 
20
  RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
21
 
 
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/fontconfig_cache
20
 
21
  RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
22
 
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
- os.environ['FONTCONFIG_CACHE'] = '/tmp/fontconfig-cache'
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'] = '/fontconfig/cache'
10
 
11
 
12
  import matplotlib.pyplot as plt