Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以做个docker版本的吗 #106

Open
714274808 opened this issue Aug 24, 2024 · 1 comment
Open

可以做个docker版本的吗 #106

714274808 opened this issue Aug 24, 2024 · 1 comment

Comments

@714274808
Copy link

可以做个docker版本的吗,方便安装

@q66217910
Copy link

FROM python:3.10-slim-bullseye

WORKDIR /FunClip

RUN chmod 777 /FunClip

ENV PYTHONPATH="/FunClip"

RUN apt-get update && apt-get install -y \
    git \
    imagemagick \
    ffmpeg \
    wget \
    && rm -rf /var/lib/apt/lists/*

RUN sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml

COPY requirements.txt ./

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 7860

CMD ["python", "funclip/launch.py"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants