CoolFace
Apppublic

HarryLiu/MoneyPrinterTurbo

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile35 linesDownload Raw Back to root
1# Use an official Python runtime as a parent image2FROM python:3.10-slim-bullseye3 4# Set the working directory in the container5WORKDIR /MoneyPrinterTurbo6 7# 设置/MoneyPrinterTurbo目录权限为7778RUN chmod 777 /MoneyPrinterTurbo9 10ENV PYTHONPATH="/MoneyPrinterTurbo"11 12# Install system dependencies13RUN apt-get update && apt-get install -y \14    git \15    imagemagick \16    ffmpeg \17    && rm -rf /var/lib/apt/lists/*18 19# Fix security policy for ImageMagick20RUN sed -i '/<policy domain="path" rights="none" pattern="@\*"/d' /etc/ImageMagick-6/policy.xml21 22# Copy only the requirements.txt first to leverage Docker cache23COPY requirements.txt ./24 25# Install Python dependencies26RUN pip install --no-cache-dir -r requirements.txt27 28# Now copy the rest of the codebase into the image29COPY . .30 31# Expose the port the app runs on32EXPOSE 808033 34# Command to run the application35CMD ["python", "main.py"]