jenniferzhou33 commited on
Commit
3256059
·
1 Parent(s): 51af2bd

font cache

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -17,8 +17,14 @@ RUN pip install -r /tmp/requirements.txt
17
  RUN pip install rpy2==3.5.11
18
  ENV MPLCONFIGDIR /tmp/matplotlib_cache
19
 
20
- # RUN mkdir -p /tmp/fontconfig-cache && chmod -R 777 /tmp/fontconfig-cache
21
- ENV FONTCONFIG_CACHE HF_HUB_CACHE
 
 
 
 
 
 
22
 
23
  # Install R packages
24
  RUN R -e "install.packages('reshape2', repos='http://cran.rstudio.com/')"
 
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
+
22
+ # Set permissions for fontconfig cache directory
23
+ RUN mkdir -p /opt/X11/var/cache/fontconfig && \
24
+ chmod -R 755 /opt/X11/var/cache/fontconfig && \
25
+ chown -R appuser:appgroup /opt/X11/var/cache/fontconfig
26
+
27
+
28
 
29
  # Install R packages
30
  RUN R -e "install.packages('reshape2', repos='http://cran.rstudio.com/')"