test / Dockerfile
Ashkchamp's picture
Update Dockerfile
02843bb verified
raw
history blame contribute delete
571 Bytes
FROM python:3.9-slim
# 1. System libs for OpenCV
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgl1-mesa-glx libglib2.0-0 libsm6 libxext6 libxrender1 libfontconfig1 && \
rm -rf /var/lib/apt/lists/*
# 2. Python deps
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# 3. App code
WORKDIR /app
COPY . /app
# 4. Expose the Streamlit port used by HF (7860 by default)
EXPOSE 7860
CMD ["streamlit", "run", "streamlit_app.py", \
"--server.port", "7860", \
"--server.address", "0.0.0.0"]