Skip to content

Commit

Permalink
refactor(Dockerfile): Replace pdm with uv for dependency management a…
Browse files Browse the repository at this point in the history
…nd execution (#336)
  • Loading branch information
HsiangNianian authored Nov 26, 2024
1 parent 64e7661 commit 19c49d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ COPY . .
RUN python3 -m venv /.venv
RUN /.venv/bin/python -m pip install --upgrade pip && \
/.venv/bin/python -m pip install pdm maturin
RUN /.venv/bin/python -m pdm sync
RUN /.venv/bin/python -m pdm install -dG dev
RUN uv sync --all-extras --dev

CMD ["/.venv/bin/python", "-m", "pdm", "run", "iamai", "version"]
CMD ["uv", "run", "iamai", "version"]
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ADD /examples /app/

RUN pip install iamai[all]

CMD ["pdm", "run", "main.py"]
CMD ["uv", "run", "main.py"]

0 comments on commit 19c49d7

Please sign in to comment.