-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
63 lines (41 loc) · 1.58 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM rockylinux:9
ENV TERM=xterm-256color
# by default, only C C.utf8 and POSIX are available for locale
# run 'local -a' to check it
RUN dnf install -y glibc-langpack-en
ENV LANG=en_US.utf8
ENV LC_ALL=en_US.utf8
RUN useradd sgotand
RUN dnf -y install git
# RUN dnf -y install epel-release && \
RUN dnf -y install python3 python3-pip
RUN dnf -y install epel-release && \
dnf -y install nodejs && \
npm install -g n && \
n stable
# yarn is needed for coc
RUN pip3 install neovim && npm install -g yarn && yarn add neovim
# RUN npm -v && false
RUN mkdir -p /usr/local
RUN curl -fsSL https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.tar.gz | tar xzv --strip-components=1 -C /usr/local
RUN mkdir -p $HOME/.config/nvim && \
ln -s $HOME/.dotfiles/vimrc $HOME/.config/nvim/init.vim
RUN dnf install -y git gcc libevent-devel ncurses-devel make byacc
RUN mkdir -p /usr/local/src/tmux && chmod 777 /usr/local/src/tmux
RUN curl -fsSL https://github.com/tmux/tmux/releases/download/3.5/tmux-3.5.tar.gz | tar xzv -C /usr/local/src/tmux/
WORKDIR /usr/local/src/tmux/tmux-3.5
RUN ./configure
RUN make -j4
USER root:root
RUN make install
RUN dnf -y install zsh
RUN dnf -y install sudo
RUN echo 'sgotand ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers
USER sgotand:sgotand
WORKDIR /home/sgotand
ADD --chown=sgotand:sgotand ./ .dotfiles/
RUN mkdir -p $HOME/.config/nvim
RUN ln -s $HOME/.dotfiles/init.lua $HOME/.config/nvim/init.lua
RUN ln -s $HOME/.dotfiles/tmux.conf $HOME/.tmux.conf
RUN echo "source ~/.dotfiles/zshrc" > ~/.zshrc
RUN echo "source ~/.dotfiles/zshenv" > ~/.zshenv