File size: 689 Bytes
84489b5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM python:3.10-slim
ENV PYTHONUNBUFFERED=1
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ARG APP_USER_UID=1000
ARG APP_USER_GID=1000
RUN groupadd --gid $APP_USER_GID appgroup && \
useradd --uid $APP_USER_UID --gid appgroup --shell /bin/bash --create-home appuser
WORKDIR /home/appuser/app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir streamlit moviepy # Pillow (if TextClip test is uncommented)
COPY test_app.py .
RUN chown -R appuser:appgroup /home/appuser/app
USER appuser
EXPOSE 8501
CMD ["streamlit", "run", "test_app.py", "--server.headless=true"] |