-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 813 Bytes
/
Dockerfile
File metadata and controls
28 lines (23 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:latest
# see: https://stackoverflow.com/questions/36611052/install-pip-in-docker
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update && apt-get -y install \
zsh \
git curl wget lynx \
iputils-ping lshw net-tools \
nano bc gawk htop eza fzf bat neovim stow \
sudo \
python3.12 python3-pip pipenv \
tzdata \
unminimize
# correct timezone
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# --------------------------- user:passwd
RUN useradd docker && echo "docker:docker" | chpasswd
RUN usermod --shell /usr/bin/zsh -aG sudo docker
RUN usermod --shell /usr/bin/zsh -aG sudo root
# ------------------------------------- user:group
RUN mkdir -p /home/docker && chown -R docker:docker /home/docker
USER root
RUN zsh