Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
#
|
| 40 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|