Testing_p / Dockerfile
NaveenKumar5's picture
Update Dockerfile
eda0adc verified
raw
history blame contribute delete
500 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install required system libraries for OpenCV
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
# Set Hugging Face cache directory to a writable location
ENV TRANSFORMERS_CACHE=/tmp/huggingface
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/
EXPOSE 8501
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.enableCORS=false"]