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

add coder container for med

parent 42b7d198
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,12 @@ services:
dockerfile: Dockerfile
context: ./docker/coder-ubuntu_22-python
coder-med:
image: ${CI_REGISTRY}/studio-r215/containerize/coder-med:24
build:
dockerfile: Dockerfile
context: ./docker/coder-med
libre-translate-cuda:
image: ${CI_REGISTRY}/studio-r215/containerize/libre-translate:latest-cuda
build:
......
FROM nvidia/cuda:12.6.2-devel-ubuntu24.04
LABEL authors="sebastian"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
# install basic tools
RUN apt-get install -y git wget curl
# install python, pip and venv
RUN apt-get install -y python3 python3-pip python3-venv
# install pipx
ENV TZ=Europe/Berlin
RUN apt-get install -y pipx
RUN pipx ensurepath
# install poetry
ENV PIPX_BIN_DIR="/usr/local/bin"
RUN pipx install poetry
RUN poetry completions bash >> ~/.bash_completion
RUN PIPX_BIN_DIR="~/.local/bin"
# install conda
ENV PATH="${PATH}:/opt/conda/bin"
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py312_24.4.0-0-Linux-x86_64.sh
RUN bash Miniconda3-py312_24.4.0-0-Linux-x86_64.sh -b -p /opt/conda
RUN rm Miniconda3-py312_24.4.0-0-Linux-x86_64.sh
# prepare for coder usage
RUN apt-get install -y \
htop \
jq \
locales \
man \
software-properties-common \
sudo \
systemd \
systemd-sysv \
unzip \
rsync \
vim \
nano
RUN useradd -ms /bin/bash coder
RUN usermod -aG sudo coder
# clean up
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# switch to coder user
USER coder
WORKDIR /home/coder
\ No newline at end of file
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