Skip to content

Commit

Permalink
docker_file_updated (#439)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Nov 20, 2024
2 parents d1addd2 + 1b0ce6e commit 6671ded
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,14 @@ RUN npm run build-prod
RUN apt-get update && apt-get install -y \
software-properties-common

# Add the repository for Python 3.12 and install it
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && \
apt-get install -y python3.12 python3.12-venv python3.12-dev
# Add the Deadsnakes PPA for Python 3.12 manually
RUN curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xDEADSNAKES \
| gpg --dearmor -o /usr/share/keyrings/deadsnakes-archive-keyring.gpg && \
echo "deb [signed-by=/usr/share/keyrings/deadsnakes-archive-keyring.gpg] http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal main" \
> /etc/apt/sources.list.d/deadsnakes-ppa.list && \
apt-get update && \
apt-get install -y python3.12 python3.12-venv python3.12-dev && \
apt-get clean

# Verify Python 3.12 installation
RUN python3.12 --version
Expand Down

0 comments on commit 6671ded

Please sign in to comment.