Spaces:
Paused
Paused
Install mesher Linux libraries and validate CAD imports during build
Browse files- Dockerfile +13 -12
Dockerfile
CHANGED
|
@@ -1,13 +1,14 @@
|
|
| 1 |
-
FROM mambaorg/micromamba:latest
|
| 2 |
-
USER root
|
| 3 |
-
RUN apt-get update && apt-get install -y --no-install-recommends libgl1 libglu1-mesa libgomp1 libxrender1 libxext6 && rm -rf /var/lib/apt/lists/*
|
| 4 |
-
USER $MAMBA_USER
|
| 5 |
-
RUN micromamba install -y -n base -c conda-forge python=3.11 pythonocc-core=7.7.2 numpy scipy trimesh pip && micromamba clean --all --yes
|
| 6 |
-
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
| 7 |
-
RUN python -m pip install --no-cache-dir torch==2.11.0 --index-url https://download.pytorch.org/whl/cpu
|
| 8 |
-
RUN python -m pip install --no-cache-dir gmsh==4.13.1 fastapi==0.141.1 uvicorn==0.52.4 httpx==0.28.1
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
CMD ["python", "-m", "uvicorn", "scripts.space_server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"]
|
|
|
|
| 1 |
+
FROM mambaorg/micromamba:latest
|
| 2 |
+
USER root
|
| 3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends libgl1 libglu1-mesa libgomp1 libxrender1 libxext6 libxcursor1 libxinerama1 libxrandr2 libxi6 libxft2 libxfixes3 && rm -rf /var/lib/apt/lists/*
|
| 4 |
+
USER $MAMBA_USER
|
| 5 |
+
RUN micromamba install -y -n base -c conda-forge python=3.11 pythonocc-core=7.7.2 numpy scipy trimesh pip && micromamba clean --all --yes
|
| 6 |
+
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
| 7 |
+
RUN python -m pip install --no-cache-dir torch==2.11.0 --index-url https://download.pytorch.org/whl/cpu
|
| 8 |
+
RUN python -m pip install --no-cache-dir gmsh==4.13.1 fastapi==0.141.1 uvicorn==0.52.4 httpx==0.28.1
|
| 9 |
+
RUN python -c "import gmsh; from OCC.Core.STEPControl import STEPControl_Reader; import torch; gmsh.initialize(); gmsh.finalize()"
|
| 10 |
+
WORKDIR /home/mambauser/app
|
| 11 |
+
COPY --chown=$MAMBA_USER:$MAMBA_USER . .
|
| 12 |
+
ENV ACE_DEVICE=cpu PYTHONUNBUFFERED=1
|
| 13 |
+
EXPOSE 7860
|
| 14 |
CMD ["python", "-m", "uvicorn", "scripts.space_server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"]
|