Skip to content

Commit ef485b8

Browse files
committed
Provided a name in config and updated the dockerfile to use the one from wolframEvaluationFunction
1 parent 8d1767c commit ef485b8

2 files changed

Lines changed: 5 additions & 23 deletions

File tree

Dockerfile

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
FROM ghcr.io/lambda-feedback/evaluation-function-base/wolfram:latest AS final
2-
3-
# Use the WSTP server as a kernel backend
4-
ENV WSTP_SERVER="true"
1+
FROM ghcr.io/lambda-feedback/evaluation-function-base/wolfram:latest as base
52

63
# Command to start the evaluation function with
74
ENV FUNCTION_COMMAND="wolframscript"
@@ -12,22 +9,7 @@ ENV FUNCTION_ARGS="-f,/app/evaluation_function.wl"
129
# Interface to use for the evaluation function
1310
ENV FUNCTION_INTERFACE="file"
1411

15-
# Copy the evaluation function to the app directory
16-
COPY ./evaluation_function.wl /app/evaluation_function.wl
17-
18-
# Final layer for private images, which contains the wolfram licence key,
19-
# and is started with the shimmy handle command.
20-
FROM final AS final-private
21-
22-
# Copy the mathpass secret to the Wolfram Engine licensing directory.
23-
# See https://hub.docker.com/r/wolframresearch/wolframengine for more information.
24-
RUN --mount=type=secret,id=mathpass \
25-
mkdir -p /tmp/home/.WolframEngine/Licensing && \
26-
cp /run/secrets/mathpass /tmp/home/.WolframEngine/Licensing/mathpass
12+
ENV LOG_LEVEL="DEBUG"
2713

28-
29-
RUN apt-get update && apt-get install -y \
30-
netcat \
31-
&& rm -rf /var/lib/apt/lists/*
32-
33-
COPY ./entrypoint.sh /entrypoint.sh
14+
# Copy the evaluation function to the app directory
15+
COPY ./evaluation_function.wl /app/evaluation_function.wl

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"EvaluationFunctionName": ""
2+
"EvaluationFunctionName": "boilerplate-wolfram"
33
}

0 commit comments

Comments
 (0)