add dockerfiles for basebox with tmux and default user

This commit is contained in:
encrypt 2015-01-24 21:14:05 +01:00
parent 9164364cc1
commit 60d8b8d350
3 changed files with 40 additions and 0 deletions

View 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
View 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
View 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"]