Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
# Base image with Python and common dependencies
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
# Set environment variables
|
| 5 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 8 |
-
|
| 9 |
-
# Set working directory
|
| 10 |
-
WORKDIR /app
|
| 11 |
|
| 12 |
# Copy requirements file and install Python dependencies
|
| 13 |
COPY requirements.txt requirements.txt
|
|
@@ -31,6 +32,7 @@ RUN pip install -r requirements.txt
|
|
| 31 |
RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
|
| 32 |
RUN mkdir -p /app/OUTPUTS
|
| 33 |
RUN chmod -R 777 /app
|
|
|
|
| 34 |
|
| 35 |
# Expose the required port for HF Spaces
|
| 36 |
EXPOSE 7860
|
|
|
|
| 1 |
# Base image with Python and common dependencies
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
+
# Set working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
# Set environment variables
|
| 8 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 9 |
ENV PYTHONUNBUFFERED=1
|
| 10 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 11 |
+
ENV NLTK_DATA=/app/nltk_data
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Copy requirements file and install Python dependencies
|
| 14 |
COPY requirements.txt requirements.txt
|
|
|
|
| 32 |
RUN mkdir -p /app/cache /app/data && chmod -R 777 /app/cache /app/data
|
| 33 |
RUN mkdir -p /app/OUTPUTS
|
| 34 |
RUN chmod -R 777 /app
|
| 35 |
+
RUN mkdir -p /app/nltk_data
|
| 36 |
|
| 37 |
# Expose the required port for HF Spaces
|
| 38 |
EXPOSE 7860
|