Skip to content

Commit d357271

Browse files
thatguyinabeanieopencode
andcommitted
upgrade Python to 3.12
🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <[email protected]>
1 parent fd18ecd commit d357271

2 files changed

Lines changed: 34 additions & 2 deletions

File tree

Dockerfile

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM gabemendoza1/docker-linuxserver-ubuntu-fips:jammy-22.04
3+
FROM gabemendoza1/docker-linuxserver-ubuntu-fips:jammy-22.04 as docker-code-server-python
44

5+
ARG DEBIAN_FRONTEND="noninteractive"
6+
7+
# Set root user home directory to /workspace
8+
RUN usermod -d /workspace root
9+
10+
# Install Python 3.12
11+
RUN echo "**** install Python 3.12 ****" && \
12+
apt-get update && \
13+
apt-get install -y \
14+
software-properties-common \
15+
gpg-agent && \
16+
curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get\&search=0xF23C5A6CF475977595C89F51BA6932366A755776 | apt-key add - && \
17+
echo "deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main" > /etc/apt/sources.list.d/deadsnakes.list && \
18+
apt-get update && \
19+
apt-get install -y \
20+
python3.12 \
21+
python3.12-dev \
22+
python3.12-venv \
23+
python3.12-distutils && \
24+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 && \
25+
update-alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
26+
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 && \
27+
pip3 install --upgrade pip setuptools wheel && \
28+
python3 --version && \
29+
pip3 --version && \
30+
echo "**** clean up ****" && \
31+
apt-get clean && \
32+
rm -rf \
33+
/var/lib/apt/lists/* \
34+
/tmp/*
35+
36+
FROM docker-code-server-python
537
ARG BUILD_DATE
638
ARG VERSION
739
ARG CODE_RELEASE

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
services:
33
docker-code-server:
4-
image: gabemendoza1/docker-code-server:jammy22.04-python3.10-codeserver-v${CODE_RELEASE:-4.102.1}
4+
image: gabemendoza1/docker-code-server:jammy22.04-python3.12-codeserver-v${CODE_RELEASE:-4.102.1}
55
build:
66
context: .
77
dockerfile: Dockerfile

0 commit comments

Comments
 (0)