1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 14:13:53 +01:00
eoli3n-dotfiles/docker/archlinux/Dockerfile
2021-05-20 18:41:11 +02:00

48 lines
953 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 \
ansible \
jshon \
git \
neovim \
mako \
fish
ENV PATH="${PATH}:/usr/bin/core_perl"
# Project deps
# 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"]