Spaces:
Build error
Build error
Create Docker/dockerfile
Browse files- Docker/dockerfile +20 -0
Docker/dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use a Python base image
|
| 2 |
+
FROM python:3.10-slim
|
| 3 |
+
|
| 4 |
+
# Install system dependencies for GMSH and OpenGL
|
| 5 |
+
RUN apt-get update && apt-get install -y \
|
| 6 |
+
libglu1-mesa \
|
| 7 |
+
libgl1-mesa-glx \
|
| 8 |
+
xvfb \
|
| 9 |
+
&& apt-get clean
|
| 10 |
+
|
| 11 |
+
# Install Python dependencies
|
| 12 |
+
COPY requirements.txt /app/requirements.txt
|
| 13 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 14 |
+
|
| 15 |
+
# Copy application code
|
| 16 |
+
COPY . /app
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
|
| 19 |
+
# Run the application
|
| 20 |
+
CMD ["python", "app.py"]
|