forked from algorithmicsuperintelligence/openevolve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 681 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 681 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
# Use an official Python image as the base
FROM python:3.12-slim
# Set the working directory inside the container
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the project files into the container
COPY . /app
# Install Python dependencies
RUN pip install --root-user-action=ignore -e .
# Expose the project directory as a volume
VOLUME ["/app"]
# Default to the LoopBench CLI. Pass subcommands/args at `docker run`, e.g.:
# docker run --rm -v $PWD:/app loopbench run --target . --metric latency
ENTRYPOINT ["loopbench"]
CMD ["--help"]