Skip to content

Commit d3e9f1d

Browse files
committed
Condense some RUN commands in the Dockerfile
1 parent fc2e814 commit d3e9f1d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ FROM wolframresearch/wolframengine:latest
33
USER root
44

55
RUN apt-get update -y && \
6-
apt-get install -y python3 python3-pip
7-
8-
RUN pip3 install wolframclient
6+
apt-get install -y python3 python3-pip && \
7+
pip3 install wolframclient
98

109
COPY . /tmp/build
1110
RUN pip3 install /tmp/build && \

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ One advantage of a multi-file application structure is that is very easy to exte
152152

153153
Wolfram Web Engine for Python is available as [a container image from Docker Hub](https://hub.docker.com/r/wolframresearch/wolframwebengineforpython) for use in containerized environments.
154154

155+
This image is based on the [official Wolfram Engine Docker image](https://hub.docker.com/r/wolframresearch/wolframengine); information on product activation and license terms is available on the [Docker Hub page](https://hub.docker.com/r/wolframresearch/wolframengine) for the latter image.
156+
155157
```
156158
# exposes the server on port 8080 of the host machine
157159
>>> docker run -ti -p 8080:18000 wolframresearch/wolframwebengineforpython --demo
@@ -160,9 +162,10 @@ Wolfram Web Engine for Python is available as [a container image from Docker Hub
160162
>>> docker run -ti -p 8080:18000 wolframresearch/wolframwebengineforpython /srv
161163
```
162164

163-
This image is based on the [official Wolfram Engine Docker image](https://hub.docker.com/r/wolframresearch/wolframengine); information on product activation and license terms is available on the [Docker Hub page](https://hub.docker.com/r/wolframresearch/wolframengine) for the latter image.
165+
The commands above do not include activation/licensing configuration; see the [official Wolfram Engine Docker image](https://hub.docker.com/r/wolframresearch/wolframengine) for information on activating the Wolfram Engine kernel.
166+
164167

165-
Note regarding on-demand licensing: As Wolfram Web Engine for Python does not use WolframScript, the `-entitlement` command-line option and the `WOLFRAMSCRIPT_ENTITLEMENTID` environment variable are not sufficient to pass an on-demand license entitlement ID to the Wolfram Engine kernel inside this image. As a workaround, the `WOLFRAMINIT` environment variable can be set to pass both the entitlement ID and the license server address to the kernel:
168+
Note regarding on-demand licensing: As Wolfram Web Engine for Python does not use WolframScript, the `-entitlement` command-line option and the `WOLFRAMSCRIPT_ENTITLEMENTID` environment variable cannot be used to pass an on-demand license entitlement ID to the Wolfram Engine kernel inside this image. As a workaround, the `WOLFRAMINIT` environment variable can be set to pass both the entitlement ID and the license server address to the kernel:
166169

167170
```
168171
>>> docker run -ti -p 8080:18000 --env WOLFRAMINIT='-pwfile !cloudlm.wolfram.com -entitlement O-WSTD-DA42-GKX4Z6NR2DSZR' wolframresearch/wolframwebengineforpython --demo

0 commit comments

Comments
 (0)