binuser007/Toxic_comment_classification_using_Bert
0
1FROM python:3.9-slim2 3WORKDIR /app4 5# Copy requirements first for better caching6COPY requirements.txt .7 8# Install dependencies9RUN pip install --no-cache-dir -r requirements.txt10 11# Copy the rest of the application12COPY . .13 14# Download NLTK data15RUN python -c "import nltk; nltk.download('punkt')"16 17# Make port 7860 available for Hugging Face Spaces18EXPOSE 786019 20# Set environment variables for Streamlit21ENV PYTHONUNBUFFERED=1 \22 PYTHONDONTWRITEBYTECODE=1 \23 STREAMLIT_SERVER_PORT=7860 \24 STREAMLIT_SERVER_HEADLESS=true \25 STREAMLIT_SERVER_ENABLE_CORS=false26 27# Command to run the application28CMD ["streamlit", "run", "app.py", "--server.address=0.0.0.0"]29 