Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joszamama committed Feb 3, 2025
1 parent c2350d2 commit 3f005e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
15 changes: 4 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Copy pyproject.toml and other required files
COPY pyproject.toml README.md LICENSE.md Makefile SECURITY.md /app/

# Install pip, setuptools, and wheel
RUN python -m pip install --upgrade pip setuptools wheel poetry

# Install dependencies listed in pyproject.toml
RUN poetry config virtualenvs.in-project true # Use .venv inside the project directory
RUN poetry install --no-root
# Install pip, setuptools, wheel, and build
RUN python -m pip install --upgrade pip setuptools wheel build

# Copy the entire project into the container
COPY . /app

# Ensure the CLI script is installed and accessible
RUN poetry build && pip install dist/*.whl

# Set the PATH to include Poetry's virtual environment
ENV PATH="/app/.venv/bin:$PATH"
# Build the package and install the wheel
RUN python -m build && pip install dist/*.whl

# Keep the container running with a long-running process
CMD ["tail", "-f", "/dev/null"]
6 changes: 0 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,3 @@ test = [
[tool.black]
line-length = 88
target-version = ['py311']

[tool.poetry]
packages = [
{ include = "fandango", from = "src" },
{ include = "evaluation", from = "evaluation" }
]

0 comments on commit 3f005e8

Please sign in to comment.