Skip to content

Commit

Permalink
Merge pull request #40 from ethanholz/ci/dockerfile-uv
Browse files Browse the repository at this point in the history
Use `uv` for our Dockerfile
  • Loading branch information
dwhswenson authored Nov 11, 2024
2 parents 8c1b869 + 57b7c20 commit 206bc37
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 206bc37

Please sign in to comment.