phyalexander / Saturn

The rule-based programming language
MIT License
0 stars 0 forks source link

Add supporting Docker #3

Open phyalexander opened 1 week ago

phyalexander commented 1 week ago

Add dockerfile with which a user can build a container an run SVM and SC crossplatformly.

Up to second release.

phyalexander commented 6 days ago

Suggesting solutions:

FROM openjdk:17
COPY jars /
COPY language/std /root/.Saturn/std
WORKDIR /
ENTRYPOINT ["java", "-jar", "Saturn.jar"]

So, a user can run the image by this way:

docker run -v "$PWD":$PWD --rm saturn run $PWD/code.saturn

Here 'code.saturn' is a relative path to Saturn source code