milanchndr/Toxic-Comment-Classifier-Explainer
0
1# Use an official Python image2FROM python:3.103 4# Create working directory5WORKDIR /code6 7# Copy requirements first (for caching)8COPY requirements.txt /code/9 10# Install dependencies11RUN pip install --no-cache-dir -r requirements.txt12 13# Copy all app files14COPY . /code/15 16# Expose API port17EXPOSE 786018 19# Run FastAPI app with uvicorn20CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]21 