VenujaDeSilva's picture
Update Dockerfile
a49e3af verified
raw
history blame contribute delete
397 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install git (needed for transformers when downloading configs)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy all project files (model + app.py)
COPY . .
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]