Add Docker setup for testing

This commit is contained in:
Ernst Widerberg 2021-11-20 13:05:56 +01:00
parent 186645a0aa
commit 5b8a833fe9
4 changed files with 58 additions and 22 deletions

22
Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM ubuntu
RUN apt update && apt install -y \
git \
vim \
neovim
WORKDIR root
RUN git clone https://github.com/junegunn/vader.vim
COPY . main
RUN mkdir -p /root/.vim/pack/all/start
RUN mkdir -p /root/.local/share/nvim/site/pack/all/start
RUN ln -s /root/* /root/.vim/pack/all/start
RUN ln -s /root/* /root/.local/share/nvim/site/pack/all/start
RUN echo "set encoding=utf-8" > /root/.vim/vimrc
WORKDIR main
ENTRYPOINT ["./run-tests.sh"]