Skip to content
Snippets Groups Projects
Commit 8f7b5ff6 authored by Sebastian Karius's avatar Sebastian Karius
Browse files

add ubuntu 24

parent 641bcaee
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment