mirror of
https://github.com/Luzifer/3dmodels.git
synced 2024-12-23 02:41:19 +00:00
Add compiler
This commit is contained in:
parent
5c686b1f15
commit
2cbcf6176a
2 changed files with 19 additions and 0 deletions
9
Makefile
Normal file
9
Makefile
Normal 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
10
ci/Dockerfile.compile
Normal 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"]
|
Loading…
Reference in a new issue