Dockerized

This commit is contained in:
Christian Anetzberger
2026-01-26 20:33:52 +01:00
parent e18c14750e
commit 1b5aa90dbe
9 changed files with 279 additions and 101 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
services:
stepanalyser:
build: .
container_name: stepanalyser
ports:
- "5055:5055"
volumes:
- ./_jobs:/app/_jobs
environment:
- TZ=Europe/Berlin
- FREECADCMD=/opt/conda/envs/fc/bin/freecadcmd
- FREECAD_TIMEOUT_SEC=1200
- FREECAD_LOCK_FILE=/app/_jobs/.freecad.lock
command: >
bash -lc '
mkdir -p /config/.local/share/FreeCAD/Mod &&
if [ ! -e /config/.local/share/FreeCAD/Mod/SheetMetal ]; then
ln -s /opt/freecad_mods/SheetMetal /config/.local/share/FreeCAD/Mod/SheetMetal;
fi &&
micromamba run -n fc gunicorn -w 1 --threads 4 -b 0.0.0.0:5055 app:app
'
restart: unless-stopped