Jofthomas HF staff commited on
Commit
8c94603
1 Parent(s): 94b6e1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -4,8 +4,8 @@ FROM python:3.10.9
4
  RUN addgroup --gid 1001 appgroup && adduser --uid 1001 --gid 1001 --disabled-password --gecos "" appuser
5
 
6
  # Create directories with appropriate permissions and change ownership
7
- RUN mkdir -m 777 /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR /home/appuser/.local
8
- RUN chown -R appuser:appgroup /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR /home/appuser/.local
9
 
10
  # Set environment variables
11
  ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/
 
4
  RUN addgroup --gid 1001 appgroup && adduser --uid 1001 --gid 1001 --disabled-password --gecos "" appuser
5
 
6
  # Create directories with appropriate permissions and change ownership
7
+ RUN mkdir -p /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR /home/appuser/.local /opt/venv /home/appuser/.cache/tts
8
+ RUN chown -R appuser:appgroup /tmp/NUMBA_CACHE_DIR /tmp/MPLCONFIGDIR /home/appuser/.local /opt/venv /home/appuser/.cache/tts
9
 
10
  # Set environment variables
11
  ENV NUMBA_CACHE_DIR=/tmp/NUMBA_CACHE_DIR/