docker build -t cq-conda .
Create a new container for latter use:
docker run --name cadquery -v $PWD:/cadquery:z -itd cq-conda bash
Given the script:
# script.py
import cadquery as cq
from cadquery import exporters
cube = cq.Workplane().box(1, 1, 1)
exporters.export(cube, 'part.step')
In order to execute the script:
docker exec -i cadquery python script.py