sh.tforgione.fr/Dockerfile

16 lines
340 B
Docker
Raw Normal View History

2024-10-19 02:38:04 +01:00
FROM debian:11 AS debian-user
RUN \
apt update && \
2024-10-19 03:04:22 +01:00
apt install sudo curl && \
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"]