File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 11FROM alpine:3.5
22
3- RUN apk --update add bash \
4- && rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
5-
6- RUN adduser -h /home -s /bin/bash -D -u 8465 vimtest
3+ RUN adduser -h /home -s /bin/sh -D -u 8465 vimtest
74
85RUN mkdir -p /vim /vim-build/bin /plugins
96RUN chown vimtest:vimtest /home /plugins
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33echo " Running as: $( whoami) "
44
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33set -e
44
@@ -20,6 +20,8 @@ build() {
2020 [ -z $NAME ] && NAME=" vim-${TAG} "
2121 [ -z $TAG ] && bail " -tag is required"
2222
23+ apk add ncurses
24+
2325 VIM_NAME=" vim_${TAG} _py${PYTHON} _rb${RUBY} _lua${LUA} "
2426 VIM_PATH=" /vim-build/$VIM_NAME "
2527 VIM_BIN=" $VIM_PATH /bin/vim"
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33BIN=$1
44shift
55
6- if [ " $BIN " == " bash " ] || [ -z " $BIN " ]; then
7- exec /bin/bash
6+ if [ " $BIN " = " sh " ] || [ -z " $BIN " ]; then
7+ exec /bin/sh
88fi
99if ! [ -x " /vim-build/bin/$BIN " ]; then
1010 exec " $BIN " " $@ "
You can’t perform that action at this time.
0 commit comments