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
74ENV FUNCTION_COMMAND="wolframscript"
@@ -12,22 +9,7 @@ ENV FUNCTION_ARGS="-f,/app/evaluation_function.wl"
129# Interface to use for the evaluation function
1310ENV 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
0 commit comments