You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
laughing-hipster/Dockerfile

23 lines
675 B

FROM archlinux:latest
ARG INSTALL_TOOLS true
ENV FILES_DEBUG true
ENV FILES_INSTALL_TOOLS ${INSTALL_TOOLS:-true}
RUN pacman -Sy --noconfirm openssh sudo vim git which gnupg make gcc binutils bison \
&& echo '%sudo ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
&& groupadd sudo \
&& useradd -m -u 1000 -G sudo files \
&& echo "files:files" | chpasswd files
WORKDIR /home/files
COPY --chown=1000:1000 . /home/files/.files
USER 1000
RUN rm -rf .bash_rc .bash_logout .zshrc \
&& source /home/files/.files/sourceme.sh \
&& echo "source /home/files/.files/sourceme.sh" > /home/files/.bash_profile \
&& rm -rf .profile .zlogin .zshrc .bashrc mkshrc
CMD ["bash", "--login"]