Skip to content

Commit 3f005e8

Browse files
committed
fix: dockerfile
1 parent c2350d2 commit 3f005e8

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

Dockerfile

+4-11
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1919
# Copy pyproject.toml and other required files
2020
COPY pyproject.toml README.md LICENSE.md Makefile SECURITY.md /app/
2121

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

2925
# Copy the entire project into the container
3026
COPY . /app
3127

32-
# Ensure the CLI script is installed and accessible
33-
RUN poetry build && pip install dist/*.whl
34-
35-
# Set the PATH to include Poetry's virtual environment
36-
ENV PATH="/app/.venv/bin:$PATH"
28+
# Build the package and install the wheel
29+
RUN python -m build && pip install dist/*.whl
3730

3831
# Keep the container running with a long-running process
3932
CMD ["tail", "-f", "/dev/null"]

pyproject.toml

-6
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,3 @@ test = [
6565
[tool.black]
6666
line-length = 88
6767
target-version = ['py311']
68-
69-
[tool.poetry]
70-
packages = [
71-
{ include = "fandango", from = "src" },
72-
{ include = "evaluation", from = "evaluation" }
73-
]

0 commit comments

Comments
 (0)