-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
58 lines (45 loc) · 1.59 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
FROM bitnami/minideb:bullseye
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git \
file \
ca-certificates \
apt-transport-https \
gnupg \
openssh-client \
sudo \
gosu \
bsdmainutils \
ncurses-bin \
vim \
curl \
jq \
bash-completion \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /home/dockeruser \
&& mkdir -p /home/dockeruser/mbin \
&& mkdir -p /home/dockeruser/projects \
&& export PATH="$PATH:/home/dockeruser/wbin/bin:/home/dockeruser/mbin"
ENV WDC_DO_COMMANDS_DIR="/home/dockeruser/wbin"
ENV WDC_DO_COMMANDS_BIN="/home/dockeruser/wbin/bin"
ENV PATH="$PATH:/home/dockeruser/wbin/bin:/home/dockeruser/mbin"
COPY ./.cache/wbin /home/dockeruser/wbin
COPY ./.cache/bin/. /home/dockeruser/wbin/
COPY ./entrypoint.sh /home/dockeruser/wbin/
COPY ./bin/do_cmd_counts.csv /home/dockeruser/wbin/bin/
RUN cd /home/dockeruser/wbin \
&& ./cmd/do-cmd-groups-slinks \
&& ./cmd/do-cmd-index -u
#&& [ -f ./bin/nvim ] && rm -f ./bin/nvim
COPY ./.cache/vim/plugged/. /home/dockeruser/.vim/plugged/
COPY ./.cache/vim/autoload/. /home/dockeruser/.vim/autoload/
COPY ./.cache/neovim/squashfs-root/usr/. /usr/local/
COPY ./vimrc /home/dockeruser/.vimrc
COPY ./.cache/bats-core /tmp/bats-core
RUN [ -f /tmp/bats-core/install.sh ] && /tmp/bats-core/install.sh /usr/local || true
RUN ["chmod", "+x", "/home/dockeruser/wbin/entrypoint.sh"]
ENTRYPOINT [ "/home/dockeruser/wbin/entrypoint.sh" ]
WORKDIR /home/dockeruser
CMD [ "/bin/bash" ]