Skip to content

Commit db26e50

Browse files
committed
Add Dockerfile
1 parent debf874 commit db26e50

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM wolframresearch/wolframengine:latest
2+
3+
USER root
4+
5+
RUN apt-get update -y && \
6+
apt-get install -y python3 python3-pip
7+
8+
RUN pip3 install wolframclient
9+
10+
COPY . /tmp/build
11+
RUN pip3 install /tmp/build && \
12+
rm -r /tmp/build && \
13+
chown -R wolframengine /srv
14+
15+
USER wolframengine
16+
EXPOSE 18000
17+
18+
ENTRYPOINT ["/usr/bin/python3", "-m", "wolframwebengine", "--domain", "0.0.0.0"]
19+
CMD ["/srv"]

0 commit comments

Comments
 (0)