File size: 1,479 Bytes
9dd03f3
 
ab6d97f
cdf950b
ab6d97f
9dd03f3
 
 
cdf950b
 
 
 
 
9dd03f3
 
 
 
 
 
 
f893c97
9dd03f3
 
 
ab6d97f
cdf950b
ab6d97f
9dd03f3
 
 
 
 
ab6d97f
 
 
9dd03f3
 
 
 
 
ab6d97f
 
 
9dd03f3
ab6d97f
 
 
 
9dd03f3
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM python:3.10-slim

# ------------------------------------------------------
# System Dependencies (Debian 12 compatible)
# ------------------------------------------------------
RUN apt-get update && apt-get install -y \
    build-essential \
    cmake \
    mesa-utils \
    libgl1 \
    libglx-mesa0 \
    libglu1-mesa \
    libgl1-mesa-dri \
    libglib2.0-0 \
    libglfw3 \
    libx11-6 \
    libxcursor1 \
    libxrandr2 \
    libxinerama1 \
    libxi6 \
    libxft2 \
    wget \
    && rm -rf /var/lib/apt/lists/*

# ------------------------------------------------------
# Install Gmsh CLI
# ------------------------------------------------------
RUN wget https://gmsh.info/bin/Linux/gmsh-4.11.1-Linux64.tgz && \
    tar -xzf gmsh-4.11.1-Linux64.tgz && \
    mv gmsh-4.11.1-Linux64 /usr/local/gmsh && \
    ln -s /usr/local/gmsh/bin/gmsh /usr/bin/gmsh

# ------------------------------------------------------
# Install Python Dependencies
# ------------------------------------------------------
COPY requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install --upgrade pip
RUN pip install -r requirements.txt

# ------------------------------------------------------
# Copy Application Code
# ------------------------------------------------------
COPY . /app

# Print directory tree so we can confirm example_steps exists
RUN echo "===== DEBUG: Listing /app =====" && ls -R /app

RUN mkdir -p /app/output

ENV PYTHONUNBUFFERED=1

CMD ["python", "app.py"]