Skip to content

Commit

Permalink
python 3.11 on Ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
boocmp committed May 22, 2024
1 parent aa5c60b commit 9657f8c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion env/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,20 @@ RUN set -eux && \
apt-get install -q -y --no-install-recommends --allow-remove-essential \
ca-certificates gnupg2 bash build-essential

RUN apt install python3.11 python3-pip -y
RUN \
set -eux && \
apt-get install -y --no-install-recommends --allow-remove-essential software-properties-common && \
# add deadsnakes ppa to install python
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && \
apt-get install -y --no-install-recommends --allow-remove-essential curl python3.11 python3.11-dev python3.11-distutils

RUN ln -sf /usr/bin/python3.11 /usr/bin/python3 && \
ln -sf /usr/bin/pip3.11 /usr/bin/pip3

RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python3 get-pip.py && \
rm -rf get-pip.py

# Block SETUP_BENTO_USER
ARG BENTO_USER=bentoml
Expand Down
2 changes: 1 addition & 1 deletion src/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ runners:
timeout: 900
resources:
cpu: 4
nvidia.com/gpu: 1

workers_per_resource: 10

0 comments on commit 9657f8c

Please sign in to comment.