Skip to content

Commit

Permalink
Use a distinct home: /home/vimtest (#40)
Browse files Browse the repository at this point in the history
This allows for `adduser` afterwards to actually create a home.
  • Loading branch information
blueyed authored Oct 29, 2017
1 parent 417c1f7 commit 1f99a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.6

RUN adduser -h /home -s /bin/sh -D -u 8465 vimtest
RUN adduser -h /home/vimtest -s /bin/sh -D -u 8465 vimtest

RUN mkdir -p /vim /vim-build/bin /plugins
RUN chown vimtest:vimtest /home /plugins
Expand All @@ -17,7 +17,7 @@ RUN chmod +x /vim-build/bin/argecho /sbin/install_vim /sbin/run_vim
ADD scripts/rtp.vim /rtp.vim

# The user directory for setup
VOLUME /home
VOLUME /home/vimtest

# Your plugin
VOLUME /testplugin
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build push test

TAG:=5
TAG:=6

build:
docker build -t testbed/vim:$(TAG) .
Expand Down

0 comments on commit 1f99a50

Please sign in to comment.