asvwaefgvwaegqw / Dockerfile
chaowenguo's picture
Update Dockerfile
e8c5515 verified
raw
history blame contribute delete
461 Bytes
FROM ubuntu
WORKDIR /home/ubuntu
COPY . .
RUN <<EOF
apt update
apt install -y --no-install-recommends python3-pip imagemagick ffmpeg python3-yaml uvicorn python3-requests python3-multipart python3-loguru
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 ["uvicorn", "app.asgi:app", "--host", "0.0.0.0", "--port", "7860"]