Skip to content

Commit

Permalink
refactor: use uv to resolve dependencies
Browse files Browse the repository at this point in the history
This changes the project to adopting [uv](https://docs.astral.sh/uv/)
for dependency resolution. At this time, we support none of the
additional uv features other than the lockfile and then using it to
install and run the application. Using pip still works as well!
  • Loading branch information
ethanholz committed Nov 8, 2024
1 parent 8c1b869 commit 57b7c20
Show file tree
Hide file tree
Showing 2 changed files with 740 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM python:3.10-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

ENV PYTHONUNBUFFERED=1
RUN mkdir app
COPY . /app
RUN pip install --no-cache-dir /app

CMD [ "python", "/app/src/gha_runner/" ]
ADD . /app
WORKDIR /app
RUN uv sync --frozen # This installs the dependencies
CMD ["uv", "run", "-m", "gha_runner"]
Loading

0 comments on commit 57b7c20

Please sign in to comment.