add dockerfiles for basebox with tmux and default user
This commit is contained in:
parent
9164364cc1
commit
60d8b8d350
3 changed files with 40 additions and 0 deletions
14
tmux/alpinelinux/Dockerfile
Normal file
14
tmux/alpinelinux/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM alpinelinux/base
|
||||
MAINTAINER encrypt <encrypt@labr.xyz>
|
||||
|
||||
RUN apk update && \
|
||||
apk add tmux sudo
|
||||
|
||||
RUN adduser user -D && \
|
||||
echo "user:default" | chpasswd && \
|
||||
echo "user ALL=(ALL) ALL" >> /etc/sudoers
|
||||
|
||||
USER user
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
|
14
tmux/archlinux/Dockerfile
Normal file
14
tmux/archlinux/Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM base/archlinux
|
||||
MAINTAINER encrypt <encrypt@labr.xyz>
|
||||
|
||||
RUN pacman -Syu --noconfirm && \
|
||||
pacman-db-upgrade && \
|
||||
pacman -S --noconfirm tmux sudo
|
||||
|
||||
RUN echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers && \
|
||||
useradd user -m -G wheel && \
|
||||
echo "user:default" | chpasswd
|
||||
|
||||
USER user
|
||||
|
||||
CMD ["/bin/bash"]
|
12
tmux/ubuntu/Dockerfile
Normal file
12
tmux/ubuntu/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM ubuntu:latest
|
||||
MAINTAINER encrypt <encrypt@labr.xyz>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y tmux
|
||||
|
||||
RUN useradd user -m -G sudo && \
|
||||
echo "user:default" | chpasswd
|
||||
|
||||
USER user
|
||||
|
||||
CMD ["/bin/bash"]
|
Loading…
Reference in a new issue