-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (36 loc) · 1.23 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# base image
FROM ubuntu:latest
ENV USER=ubuntu
ENV DEBIAN_FRONTEND noninteractive
# Install packages
RUN apt update && apt install -y python3-pip mc ncdu aria2 htop fd-find nano \
busybox git git-lfs lynx jq bc dos2unix gawk sed p7zip gzip markdown neofetch \
iputils-ping tmux curl cmatrix w3m bash figlet nmap sudo emacs gnupg mat2 \
secure-delete bsdmainutils \
less at newsboat buku ddgr caca-utils zsh age vim && rm -rf /var/lib/apt/lists/*
# Upgrade pip
RUN pip3 install --upgrade pip
# Install Python modules
COPY requirements.txt /usr/src/py3/
RUN pip3 install --no-cache-dir -r /usr/src/py3/requirements.txt
RUN useradd -m -s /bin/bash -G sudo $USER && echo "$USER:$USER" | chpasswd
COPY homedir.tar.gz /home/$USER/
USER $USER
WORKDIR /home/$USER
# Install oh-my-zsh
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
cd .oh-my-zsh/custom/plugins && \
git clone https://github.com/zsh-users/zsh-autosuggestions
RUN gunzip homedir.tar.gz && tar -xvf homedir.tar . && \
rm homedir.tar && \
cat .zshrc2 >> .zshrc && \
rm .zshrc2 && \
./update_zshrc.sh && \
rm update_zshrc.sh && \
mkdir bin
USER root
RUN chown -R $USER:users .
#chmod u+x bin/*
USER $USER
# run the applicationn
CMD ["/bin/zsh"]