29 lines
728 B
Docker
29 lines
728 B
Docker
FROM ubuntu:21.04
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y \
|
|
sudo zsh \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN useradd -s /bin/zsh ambrose \
|
|
&& echo '' >> /etc/sudoers \
|
|
&& echo '## No password sudo' >> /etc/sudoers \
|
|
&& echo 'ambrose ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
WORKDIR /home/ambrose
|
|
COPY --chown=ambrose:ambrose . .
|
|
RUN chmod go-rwx .gnupg
|
|
|
|
USER ambrose
|
|
|
|
RUN ./.config/yadm/bootstrap rootzsh
|
|
|
|
LABEL org.opencontainers.image.title="environment"
|
|
LABEL org.opencontainers.image.url="https://github.com/serverwentdown/env"
|
|
LABEL org.opencontainers.image.source="https://github.com/serverwentdown/env.git"
|
|
LABEL org.opencontainers.image.authors="Ambrose Chua"
|
|
|
|
CMD ["/bin/zsh", "-l"]
|
|
|
|
# vim: set ft=dockerfile:
|