From 8f7b5ff698170f54b602fbf6ff577e6ade1d049e Mon Sep 17 00:00:00 2001
From: Sebastian <sebastian.karius@informatik.uni-halle.de>
Date: Wed, 12 Feb 2025 14:50:04 +0100
Subject: [PATCH] add ubuntu 24

---
 docker/coder-ubuntu_24-python/Dockerfile | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/docker/coder-ubuntu_24-python/Dockerfile b/docker/coder-ubuntu_24-python/Dockerfile
index 307f237..e56aa6c 100644
--- a/docker/coder-ubuntu_24-python/Dockerfile
+++ b/docker/coder-ubuntu_24-python/Dockerfile
@@ -3,9 +3,6 @@ LABEL authors="sebastian"
 
 SHELL ["/bin/bash", "-c"]
 
-# prevent tensorflow from allocation all vram
-ENV TF_FORCE_GPU_ALLOW_GROWTH=true
-
 ENV DEBIAN_FRONTEND=noninteractive
 RUN apt-get update && apt-get upgrade -y
 
@@ -28,11 +25,9 @@ RUN mkdir -p /opt/miniconda3
 RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ./miniconda.sh
 RUN bash ./miniconda.sh -b -u -p /opt/miniconda3
 RUN rm ./miniconda.sh
-RUN source /opt/miniconda3/bin/activate
-RUN /opt/miniconda3/bin/conda init --all
 
 # install poetry
-RUN pipx install poetry
+RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry python3 -
 
 RUN apt-get install -y htop \
     sudo \
@@ -62,5 +57,15 @@ RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 USER coder
 WORKDIR /home/coder
 
+# activate miniconda
+RUN source /opt/miniconda3/bin/activate
+RUN /opt/miniconda3/bin/conda init --all
+
+# add poetry to PATH
+ENV PATH="${PATH}:/opt/poetry/bin"
+
 # add .local/bin to PATH to be able to directly call python modules installed by pipx
-ENV PATH="${PATH}:/home/coder/.local/bin"
\ No newline at end of file
+ENV PATH="${PATH}:/home/coder/.local/bin"
+
+# prevent tensorflow from allocation all vram
+ENV TF_FORCE_GPU_ALLOW_GROWTH=true
-- 
GitLab