Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/lambda-feedback/evaluation-function-base/wolfram:latest as base

Check warning on line 1 in Dockerfile

View workflow job for this annotation

GitHub Actions / build / Build and Push Docker Image

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

# Command to start the evaluation function with
ENV FUNCTION_COMMAND="wolframscript"
Expand All @@ -12,14 +12,4 @@
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/LICENSE.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}
COPY ./evaluation_function.wl /app/evaluation_function.wl