arnaucube
arnaucube/configsPublic Self-hosted repository
configs/launch-container/Dockerfile.go
launch-container/Dockerfile.goRaw
 1FROM ubuntu:20.04
 2
 3RUN apt-get update && \
 4    apt-get -y dist-upgrade && \
 5    apt-get install -y \
 6    apt-utils \
 7    build-essential \
 8    wget \
 9    curl \
10    git \
11    neovim \
12    vim && \
13    apt-get clean
14
15RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
16    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
17RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
18    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
19RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
20    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
21
22# install go
23RUN wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
24    tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
25
26RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./bashrc
27RUN echo "export GOPATH=$HOME/go" >> ./bashrc
28
29RUN git clone https://github.com/arnaucube/configs.git && \
30    cp configs/.vimrc ~/ && \
31    cp configs/vimconfigbase.vim ~/ && \
32    mkdir ~/.config && \
33    mkdir ~/.config/nvim && \
34    cp configs/init.vim ~/.config/nvim/
35
36WORKDIR /root
37
38ENTRYPOINT /bin/sh