assessment / Dockerfile
sailajaai's picture
Update Dockerfile
c58ca24 verified
raw
history blame contribute delete
479 Bytes
FROM python:3.12-slim
# Set working dir
WORKDIR /code
# Install system deps (for NLTK, etc.)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Pre-download NLTK resources
RUN python -m nltk.downloader punkt punkt_tab stopwords wordnet
# Copy app
COPY . .
# Expose port
EXPOSE 7860
# Run app
CMD ["python", "app.py"]