diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bee887f --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +sourcefiles := $(wildcard *.jscad) + +default: $(sourcefiles) + +%.jscad: docker-build + docker run --rm -i -v "$(CURDIR):$(CURDIR)" -w "$(CURDIR)" registry.local/openjscad:cli "$@" + +docker-build: + docker build -q -f ci/Dockerfile.compile -t registry.local/openjscad:cli ci diff --git a/ci/Dockerfile.compile b/ci/Dockerfile.compile new file mode 100644 index 0000000..7cb67ca --- /dev/null +++ b/ci/Dockerfile.compile @@ -0,0 +1,10 @@ +FROM node:10-alpine + +RUN set -ex \ + && apk --no-cache add \ + build-base \ + python \ + && npm install --global @jscad/cli + +ENTRYPOINT ["openjscad"] +CMD ["--help"]