| FROM ubuntu | |
| WORKDIR /home/ubuntu | |
| COPY . . | |
| RUN <<EOF | |
| apt update | |
| apt install -y --no-install-recommends python3-pip git imagemagick ffmpeg | |
| sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml | |
| python3 -m pip install --no-cache-dir -r requirements.txt --break-system-packages | |
| EOF | |
| ENTRYPOINT ["streamlit", "run", "./webui/Main.py","--server.enableCORS=True","--browser.gatherUsageStats=False", "--server.port=7860"] |