-
Notifications
You must be signed in to change notification settings - Fork 53
/
Dockerfile
25 lines (18 loc) · 816 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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"]