mesh-refinement-agent / Dockerfile
ecopus's picture
Update Dockerfile
ab6d97f verified
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"]