Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Update to v0.18.1 to get Python 3.10+
|
| 2 |
+
FROM manimcommunity/manim:v0.18.1
|
| 3 |
+
|
| 4 |
+
USER root
|
| 5 |
+
COPY requirements.txt .
|
| 6 |
+
RUN pip install --upgrade pip
|
| 7 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
+
|
| 9 |
+
WORKDIR /app
|
| 10 |
+
COPY . /app
|
| 11 |
+
|
| 12 |
+
# Permission fix
|
| 13 |
+
RUN chown -R manimuser:manimuser /app
|
| 14 |
+
|
| 15 |
+
USER manimuser
|
| 16 |
+
EXPOSE 7860
|
| 17 |
+
CMD ["python", "app.py"]
|