QuantumLearner commited on
Commit
161df35
·
verified ·
1 Parent(s): 87bc35c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -31,12 +31,13 @@ COPY ./requirements.txt /app/requirements.txt
31
  RUN pip install --no-cache-dir --upgrade pip && \
32
  pip install --no-cache-dir -r /app/requirements.txt
33
 
34
- # Download NLTK data
35
- RUN python -m nltk.downloader punkt
36
-
37
  COPY . /app
38
 
39
- # Change permissions for the app directory
40
- RUN chmod -R 777 /app
 
 
 
 
41
 
42
  CMD ["chainlit", "run", "app.py", "--port", "7860"]
 
31
  RUN pip install --no-cache-dir --upgrade pip && \
32
  pip install --no-cache-dir -r /app/requirements.txt
33
 
 
 
 
34
  COPY . /app
35
 
36
+ # Create a non-root user and switch to it
37
+ RUN useradd -m myuser
38
+ USER myuser
39
+
40
+ # Set the NLTK_DATA environment variable
41
+ ENV NLTK_DATA /home/myuser/.nltk_data
42
 
43
  CMD ["chainlit", "run", "app.py", "--port", "7860"]