Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containerize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container Registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Studio R215
containerize
Commits
8f7b5ff6
Commit
8f7b5ff6
authored
1 month ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
add ubuntu 24
parent
641bcaee
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker/coder-ubuntu_24-python/Dockerfile
+12
-7
12 additions, 7 deletions
docker/coder-ubuntu_24-python/Dockerfile
with
12 additions
and
7 deletions
docker/coder-ubuntu_24-python/Dockerfile
+
12
−
7
View file @
8f7b5ff6
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment