AI_Text_Classifier / Dockerfile
mibrahimzia's picture
Update Dockerfile
26318e8 verified
raw
history blame contribute delete
420 Bytes
# Base image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . /app
# Create a writable cache directory
RUN mkdir -p /app/cache
ENV TRANSFORMERS_CACHE=/app/cache
# Run Streamlit
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]