-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: added basic Dockerfile for evals, removed llama-cpp-python dep…
…endency
- Loading branch information
Showing
4 changed files
with
52 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.10-slim | ||
|
||
# Install build dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Install system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
gcc \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Poetry | ||
RUN pip install poetry | ||
|
||
# Copy the project files into the container | ||
COPY pyproject.toml poetry.lock* README.md ./ | ||
COPY gptme ./gptme | ||
COPY static ./static | ||
COPY media ./media | ||
|
||
# Install project dependencies including eval extras | ||
RUN poetry config virtualenvs.create false \ | ||
&& poetry install --no-interaction --no-ansi -E server -E browser -E datascience | ||
|
||
# Make port 5000 available to the world outside this container | ||
# (assuming your Flask server runs on port 5000) | ||
EXPOSE 5000 | ||
|
||
# Set environment variable for eval | ||
ENV PYTHONPATH=/app | ||
|
||
# Default command to run the server | ||
CMD ["poetry", "run", "gptme-server"] | ||
|
||
# Add an entry point for running evals | ||
ENTRYPOINT ["poetry", "run", "python", "-m", "gptme.eval.main"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters