ActiMetric-AI / Dockerfile
bagdatli's picture
Update Dockerfile
d1c0d05 verified
raw
history blame contribute delete
513 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
libgl1 libglib2.0-0 ffmpeg && \
rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chown -R user:user /app
USER user
EXPOSE 7860
CMD ["streamlit", "run", "app.py", \
"--server.port=7860", \
"--server.address=0.0.0.0", \
"--server.headless=true", \
"--browser.gatherUsageStats=false"]