-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (43 loc) · 1.28 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
FROM alpine:edge
ENV TZ=Europe/Madrid
ENV PS1 "\n\n> \W \$ "
ENV TERM=linux
ENV GOTTY_VERSION 1.0.1
RUN apk add --update \
--no-cache \
tini \
bash \
tzdata \
font-jetbrains-mono-nerd \
neovim \
git \
gzip \
wget \
python3 \
py3-pip \
npm \
nodejs \
gcc \
musl-dev \
build-base \
curl \
&& \
rm -rf /var/cache/apk && \
addgroup -g 1000 -S dockerus && \
adduser -u 1000 -S dockerus -G dockerus -h /home -s bash && \
mkdir /app
ADD https://github.com/yudai/gotty/releases/download/v${GOTTY_VERSION}/gotty_linux_386.tar.gz /tmp/
RUN tar xvzf /tmp/gotty_linux_386.tar.gz -C /app && \
rm -rf /tmp/gotty_linux_386.tar.gz
COPY ./gotty /home/.gotty
COPY ./config /home/.config
COPY ./start.sh /app/
RUN chown -R dockerus:dockerus /app /home
USER dockerus
RUN git clone --depth 1 https://github.com/wbthomason/packer.nvim \
~/.local/share/nvim/site/pack/packer/start/packer.nvim
WORKDIR /home
RUN python3 -m pip install --user neovim
RUN nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
ENTRYPOINT ["tini", "--"]
CMD ["/bin/bash", "/app/start.sh"]