sh.tforgione.fr/Dockerfile

16 lines
346 B
Docker
Raw Normal View History

2024-10-19 02:38:04 +01:00
FROM debian:11 AS debian-user
RUN \
2024-11-09 21:13:24 +00:00
apt update -y && \
apt install sudo curl -y && \
2024-10-19 02:38:04 +01:00
useradd -m tester && \
echo tester:tester | chpasswd && \
usermod -aG sudo tester
USER tester
WORKDIR /home/tester
2024-10-19 03:04:22 +01:00
COPY ./tforgione.sh /home/tester/tforgione.sh
2024-10-19 02:38:04 +01:00
RUN echo "cat tforgione.sh | bash" > /home/tester/.bash_history
CMD ["bash"]