generated from lambda-feedback/evaluation-function-boilerplate-lean
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 856 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 856 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
26
27
28
ARG LEAN_VERSION=4.8.0-rc2
FROM ghcr.io/lambda-feedback/evaluation-function-base/lean:${LEAN_VERSION} as build
# git is required to fetch the lean version specified in `lean-toolchain` if
# it differs from `LEAN_VERSION`, and to fetch external lake dependencies.
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
COPY . .
RUN lake build
# Use the scratch image for the final layer to reduce the image size
FROM ghcr.io/lambda-feedback/evaluation-function-base/scratch:latest
# Copy the evaluation function binary from the build stage
COPY --from=build /app/.lake/build/bin/evaluation /app/evaluation
# Enable debug logging
ENV LOG_LEVEL="debug"
# Command to start the evaluation function with
ENV FUNCTION_COMMAND="/app/evaluation"
# Interface to use for the evaluation function
ENV FUNCTION_INTERFACE="file"