tori-rs/containers/Containerfile.test
2026-03-30 21:13:39 -03:00

17 lines
403 B
Text

FROM debian:trixie
MAINTAINER Juno Takano juno@jutty.dev
RUN apt-get --update install -y sudo
RUN useradd -mU sudoer
RUN echo "sudoer ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER sudoer
WORKDIR /home/sudoer
RUN mkdir -p .config/tori
RUN touch .config/tori/tori.conf
RUN echo "su_command = sudo" > .config/tori/tori.conf
COPY tori /usr/local/bin/tori
COPY test.sh /usr/local/bin/test.sh
CMD test.sh