-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ghcr.io/lambda-feedback/evaluation-function-base/wolfram:latest as base
# Command to start the evaluation function with
ENV FUNCTION_COMMAND="wolframscript"
# Args to start the evaluation function with
ENV FUNCTION_ARGS="-f,/app/evaluation_function.wl"
# Interface to use for the evaluation function
ENV FUNCTION_INTERFACE="file"
ENV LOG_LEVEL="DEBUG"
# Copy the evaluation function to the app directory
COPY ./evaluation_function.wl /app/evaluation_function.wl
FROM base AS with-license
COPY ./dist/LICENCE.txt /home/wolframengine/.WolframEngine/Licensing/mathpass
FROM base AS without-license
# no COPY, no error
# Choose final stage with build arg
ARG WITH_LICENSE=false
FROM ${WITH_LICENSE:+with-license}${WITH_LICENSE:-without-license}