diff --git a/Dockerfile b/Dockerfile index d4e66ae..fdcc8ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,16 +8,14 @@ LABEL org.opencontainers.image.title=jswank/alpine-cli \ RUN apk -U --no-cache add \ doas doas-sudo-shim \ - bash less \ + bash less openvi \ coreutils grep gawk perl RUN adduser -h /home/cli -s /bin/bash -D cli cli && \ addgroup cli wheel && \ echo "permit nopass :wheel" > /etc/doas.d/allow-wheel.conf -COPY home /home/cli - -RUN chown -R cli:cli /home/cli +ADD --chown=cli:cli home /home/cli WORKDIR /home/cli diff --git a/ctx/.dockerignore b/ctx/.dockerignore new file mode 100644 index 0000000..4bab69b --- /dev/null +++ b/ctx/.dockerignore @@ -0,0 +1 @@ +**/.gitignore diff --git a/ctx/home/.local/bin/.gitignore b/ctx/home/.local/bin/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/ctx/home/.profile b/ctx/home/.profile index 0938646..259de95 100644 --- a/ctx/home/.profile +++ b/ctx/home/.profile @@ -1,5 +1,5 @@ export LANG=en_US.UTF-8 -export EDITOR=vi +export EDITOR=ovi export VISUAL=${EDITOR} export PAGER=less export LESS=RX # R for ANSI color sequences, X to not clear screen on exit