chatbot-bipa-api2 / DockerFile
ZEROTSUDIOS's picture
Upload folder using huggingface_hub
c3637f5 verified
raw
history blame contribute delete
598 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system packages (nltk needs some)
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy everything to container
COPY . .
# Install dependencies
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Download NLTK data
RUN python -c "import nltk; nltk.download('punkt'); nltk.download('stopwords'); nltk.download('wordnet')"
# Start app using gunicorn
CMD [\"gunicorn\", \"-w\", \"4\", \"-b\", \"0.0.0.0:7860\", \"app:app\"]