1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00
eoli3n-dotfiles/docker/archlinux/Dockerfile
2020-05-13 23:42:05 +02:00

48 lines
968 B
Docker

FROM archlinux/base:latest
# Locales keyboard
RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
&& echo 'LANG="fr_FR.UTF-8"' > /etc/locale.conf
ENV LANG="fr_FR.UTF-8"
# Archlinux Deps
RUN pacman -Syu --noconfirm \
sudo \
binutils \
util-linux \
fakeroot \
file \
python \
yajl \
make \
gcc \
pkg-config \
which \
perl \
automake \
autoconf \
gettext \
patch \
rsync \
xorg-server-xephyr
ENV PATH="${PATH}:/usr/bin/core_perl"
# Project deps
RUN pacman -S --noconfirm \
ansible \
jshon \
git \
neovim \
fish
# Fix tmp dir perms
RUN chmod 1777 /tmp
# Create test user
RUN useradd -m user \
&& chown -R user:user /home/user \
&& echo -e "user\nuser" | passwd user
RUN echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
# User run
USER user
WORKDIR /home/user/
ENV LANG="fr_FR.UTF-8"
COPY . .
CMD ["/bin/bash"]