Skip to content

Commit

Permalink
Update Docker image to use Python 3.12
Browse files Browse the repository at this point in the history
This matches the same major/minor version preferred by the native
version, as listed in .python-version. Should have been done in c5fe948.
nre-ableton committed Sep 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent efdc28f commit be861f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Add deadsnakes and install Python 3.10
# Add deadsnakes and install Python 3.12
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get update \
&& apt-get install -y python3.10=3.10.* --no-install-recommends \
&& apt-get install -y python3.12=3.12.* --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

@@ -25,10 +25,10 @@ COPY ruleset.groovy /opt/resources/
COPY run_codenarc.py /opt/

WORKDIR /opt
RUN python3.10 run_codenarc.py --resources /opt/resources
RUN python3.12 run_codenarc.py --resources /opt/resources
RUN groupadd -r jenkins && useradd --no-log-init -r -g jenkins jenkins
USER jenkins

WORKDIR /ws

CMD ["python3.10", "/opt/run_codenarc.py"]
CMD ["python3.12", "/opt/run_codenarc.py"]

0 comments on commit be861f1

Please sign in to comment.