-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 690 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# ArchLinux alternative
FROM archlinux/archlinux
RUN pacman -Syu --noconfirm
RUN pacman -S --noconfirm --needed base-devel git gcc clang
RUN pacman -S --noconfirm lua luarocks sdl2
# for using the terminal
RUN pacman -S --noconfirm vim bash-completion
# add docker user with sudo permission
RUN pacman -S --noconfirm sudo
RUN useradd -m -G wheel -s /bin/bash docker
RUN echo '%wheel ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER docker
# luacov
RUN sudo luarocks install cluacov
# luacheck
RUN sudo luarocks install luacheck
# nelua global config (to force testing it)
RUN mkdir -p /home/docker/.config/nelua
RUN echo "return {}" >> /home/docker/.config/nelua/neluacfg.lua
WORKDIR /mnt