代码拉取完成,页面将自动刷新
# Use an official lightweight Python image.
FROM python:3.9-slim
# Set the working directory to /app
WORKDIR /app
# Preparing Manim dependencies and build tools
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y build-essential libcairo2-dev libpango1.0-dev pkg-config ffmpeg curl \
texlive texlive-latex-extra texlive-fonts-extra texlive-latex-recommended texlive-science
# Copy the current directory contents into the container at /app
COPY . /app
# Set the working directory to /app/api, where your Flask app is
WORKDIR /app/api
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Make port 8080 available to the world outside this container
EXPOSE 8080
# Run run.py when the container launches
CMD ["python", "../run.py"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。