initial revision
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user