-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (26 loc) · 696 Bytes
/
Dockerfile
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
28
29
30
31
32
33
# FROM ubuntu-latest
FROM docker.io/debian:12 AS build
# Set system env
ENV DEBIAN_FRONTEND=noninteractive
ENV USER=tobi
ENV HOME=/home/$USER
RUN apt update && apt install -y \
dnsutils \
git \
iputils-ping \
locales \
make \
nmap \
openssl \
ssh \
sudo \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && sudo locale-gen
RUN useradd -ms /bin/zsh "$USER" \
&& echo "$USER ALL=(ALL) NOPASSWD:ALL" | sudo tee "/etc/sudoers.d/$USER"
USER $USER
WORKDIR $HOME
RUN git clone https://github.com/this-is-tobi/dotfiles && touch ./.zshrc \
&& ./dotfiles/setup/setup-debian.sh -p "base,devops,go,js" -d
ENTRYPOINT ["/bin/zsh"]