My working ubuntu image with Python, Node.js and Git preinstalled.
624
$ sudo docker run --rm -it -v `pwd`:/home/bacchilu/dev bacchilu/dev
$ sudo docker run --rm -v `pwd`:/app -p 5000:8000 bacchilu/dev:server
FROM ubuntu:22.04
RUN apt update && apt upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
RUN ln -fs /usr/share/zoneinfo/Europe/Rome /etc/localtime
RUN apt update && apt install -y python3 python3-venv python3-pip
RUN pip3 install black
RUN apt update && apt install -y curl vim
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt update && apt install -y nodejs
RUN apt update && apt install -y git
ARG USER_ID=1000
ARG GROUP_ID=1000
ARG USER=bacchilu
RUN groupadd -g ${GROUP_ID} ${USER}
RUN useradd -ms /bin/bash -l -u ${USER_ID} -g ${USER} ${USER}
RUN install -d -m 0755 -o ${USER} -g ${USER} /home/${USER}
USER $USER
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Luca Bacchi"
WORKDIR /home/$USER
RUN ln -s /usr/share/bash-completion/completions/git git-autocomplete
EXPOSE 8000
# sudo docker build -t bacchilu/dev --build-arg USER_ID=`id -u` --build-arg GROUP_ID=`id -g` --build-arg USER=`whoami` .
# sudo docker run --rm -it -e USER_ID=`id -u` -e GROUP_ID=`id -g` bacchilu/dev
FROM python
WORKDIR /app
EXPOSE 8000
CMD ["python", "-m", "http.server"]
Content type
Image
Digest
sha256:f453377e6…
Size
254 MB
Last updated
almost 4 years ago
docker pull bacchilu/dev