-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 in LCL/wolframengineforpython from feature/ECE…
…-553-add-Dockerfile to master * commit '0960225dc4855a8efc4d41cb537066b9d21fc12f': Change `pip3` to `python3 -m pip` in Dockerfile Add some linebreaks to README.md Condense some RUN commands in the Dockerfile Add information on Docker image to README.md Add Dockerfile
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM wolframresearch/wolframengine:latest | ||
|
||
USER root | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y python3 python3-pip && \ | ||
python3 -m pip install wolframclient | ||
|
||
COPY . /tmp/build | ||
RUN pip3 install /tmp/build && \ | ||
rm -r /tmp/build && \ | ||
chown -R wolframengine /srv | ||
|
||
USER wolframengine | ||
EXPOSE 18000 | ||
|
||
ENTRYPOINT ["/usr/bin/python3", "-m", "wolframwebengine", "--domain", "0.0.0.0"] | ||
CMD ["/srv"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters