File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
537ARG BUILD_DATE
638ARG VERSION
739ARG CODE_RELEASE
Original file line number Diff line number Diff line change 11---
22services :
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
You can’t perform that action at this time.
0 commit comments