Skip to content

Commit

Permalink
Use Python 3.12 for container setup and other updates (#35)
Browse files Browse the repository at this point in the history
* Update base image to focal-20230801

* Update PowerShell to 7.3.8

* Use Python 3.12 for container setup
  • Loading branch information
mattclay authored Oct 11, 2023
1 parent 2786be4 commit c780524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/bedrock/ubuntu:focal-20230308
FROM quay.io/bedrock/ubuntu:focal-20230801

RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -66,7 +66,7 @@ RUN rm /etc/apt/apt.conf.d/docker-clean && \

# Install PowerShell using a binary archive.
# This allows pinning to a specific version, and also brings support for multiple architectures.
RUN version="7.3.7" && \
RUN version="7.3.8" && \
major_version="$(echo ${version} | cut -f 1 -d .)" && \
install_dir="/opt/microsoft/powershell/${major_version}" && \
tmp_file="/tmp/powershell.tgz" && \
Expand All @@ -90,7 +90,7 @@ CMD ["/sbin/init"]

# Install pip last to speed up local container rebuilds.
COPY files/*.py /usr/share/container-setup/
RUN ln -s /usr/bin/python3.11 /usr/share/container-setup/python
RUN ln -s /usr/bin/python3.12 /usr/share/container-setup/python
RUN /usr/share/container-setup/python -B /usr/share/container-setup/setup.py

# Make sure the pip entry points in /usr/bin are correct.
Expand Down

0 comments on commit c780524

Please sign in to comment.