1
0
Fork 0
mirror of https://github.com/Luzifer/3dmodels.git synced 2024-12-22 18:31:19 +00:00

Add compiler

This commit is contained in:
Knut Ahlers 2020-01-03 15:19:33 +01:00
parent 5c686b1f15
commit 2cbcf6176a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 19 additions and 0 deletions

9
Makefile Normal file
View file

@ -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

10
ci/Dockerfile.compile Normal file
View file

@ -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"]