Skip to content

Commit

Permalink
update python version on dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Dec 12, 2024
1 parent 952eeb7 commit 5e33361
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions azure/batch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /usr/src/zoobot

# Install prerequisites and add deadsnakes PPA for Python 3.9
# Install prerequisites and add deadsnakes PPA for Python 3.10
RUN apt-get update && apt-get -y upgrade && \
apt-get install --no-install-recommends -y \
software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && apt-get install --no-install-recommends -y \
build-essential \
python3.9 \
python3.9-distutils \
python3.9-dev \
python3.10 \
python3.10-distutils \
python3.10-dev \
python3-pip \
git && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Link Python 3.9 as default
RUN ln -sf /usr/bin/python3.9 /usr/bin/python && \
ln -sf /usr/bin/python3.9 /usr/bin/python3
# Link Python 3.10 as default
RUN ln -sf /usr/bin/python3.10 /usr/bin/python && \
ln -sf /usr/bin/python3.10 /usr/bin/python3

# install a newer version of pip
# as we can't use the use the ubuntu package pip version (20.0.2)
Expand Down

0 comments on commit 5e33361

Please sign in to comment.