From 541bfdace3b61bd42c2658a69d37511379ec625b Mon Sep 17 00:00:00 2001 From: Jason Swank Date: Sun, 19 Nov 2023 22:11:28 -0500 Subject: [PATCH] add openvi, .local/bin --- Dockerfile | 6 ++---- ctx/.dockerignore | 1 + ctx/home/.local/bin/.gitignore | 0 ctx/home/.profile | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 ctx/.dockerignore create mode 100644 ctx/home/.local/bin/.gitignore 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