initial revision

This commit is contained in:
Jason Swank
2023-02-27 13:33:28 -05:00
commit 9965cf9dfc
7 changed files with 84 additions and 0 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM alpine:edge
RUN apk -U --no-cache add \
sudo \
bash less \
coreutils grep gawk perl
# jq
RUN adduser -h /home/cli -s /bin/bash -D cli cli && \
addgroup cli wheel && \
echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/allow-wheel
COPY home /home/cli
RUN chown -R cli:cli /home/cli
WORKDIR /home/cli
USER cli
CMD ["/bin/bash", "-i"]