Skip to content

Commit

Permalink
Merge pull request #11 from lpsinger/py312
Browse files Browse the repository at this point in the history
Build Docker images for Python 3.12
  • Loading branch information
dakota002 authored May 15, 2024
2 parents 60f0336 + e51a411 commit b45270c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'

- name: Install Poetry
run: pip install poetry
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM python:3.10 AS build
FROM python:3.12 AS build
ENV POETRY_VIRTUALENVS_CREATE false
RUN curl -sSL https://install.python-poetry.org | python -
COPY . /src
WORKDIR /src
RUN $HOME/.local/bin/poetry install --only main

FROM python:slim
FROM python:3.10-slim
COPY --from=build /usr/local/lib/python3.10/site-packages/ /usr/local/lib/python3.10/site-packages/
FROM python:3.12-slim
COPY --from=build /usr/local/lib/python3.12/site-packages/ /usr/local/lib/python3.12/site-packages/
COPY --from=build /src/ /src/
COPY --from=build /usr/local/bin/gcn-monitor /usr/local/bin/
ENTRYPOINT ["gcn-monitor"]
Expand Down
65 changes: 35 additions & 30 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b45270c

Please sign in to comment.