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

48 lines
953 B
Docker
Raw Normal View History

FROM archlinux/base:latest
2017-12-25 21:37:13 +01:00
# 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"
2017-12-24 21:10:42 +01:00
# Archlinux Deps
RUN pacman -Syu --noconfirm \
2017-12-24 12:50:44 +01:00
sudo \
binutils \
util-linux \
fakeroot \
file \
python \
yajl \
make \
gcc \
pkg-config \
which \
2017-12-24 13:40:50 +01:00
perl \
automake \
2017-12-24 14:49:34 +01:00
autoconf \
2017-12-24 21:10:42 +01:00
gettext \
patch \
2020-05-13 23:31:03 +02:00
rsync \
2021-05-20 18:41:11 +02:00
xorg-server-xephyr \
2017-12-24 21:10:42 +01:00
ansible \
jshon \
2020-05-11 18:41:59 +02:00
git \
2020-05-13 23:42:05 +02:00
neovim \
2020-05-14 20:39:18 +02:00
mako \
2020-05-11 18:41:59 +02:00
fish
2021-05-20 18:41:11 +02:00
ENV PATH="${PATH}:/usr/bin/core_perl"
# Project deps
2017-12-25 01:05:46 +01:00
# Fix tmp dir perms
RUN chmod 1777 /tmp
2017-12-24 21:10:42 +01:00
# Create test user
2020-05-11 18:41:59 +02:00
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
2017-12-24 21:10:42 +01:00
# User run
2020-05-11 18:41:59 +02:00
USER user
WORKDIR /home/user/
2017-12-25 21:37:13 +01:00
ENV LANG="fr_FR.UTF-8"
2020-05-13 22:46:30 +02:00
COPY . .
2020-05-13 23:19:00 +02:00
CMD ["/bin/bash"]