19 lines
402 B
Docker
19 lines
402 B
Docker
FROM alpine:latest
|
|
|
|
# Install stuff
|
|
RUN apk --no-cache add \
|
|
sudo ansible git neovim fish bash
|
|
|
|
# Assure correct permission on /tmp
|
|
RUN chmod 1777 /tmp
|
|
|
|
# Create a test user
|
|
RUN adduser -h /home/kawaii -s /usr/bin/fish -D -G wheel kawaii \
|
|
&& echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel
|
|
|
|
# Enter testing environment
|
|
USER kawaii
|
|
WORKDIR /home/kawaii
|
|
COPY ../hosts .
|
|
CMD ["/usr/bin/fish"]
|