Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

25 lignes
520 B

  1. FROM debian:bullseye
  2. # Install tini
  3. ENV TINI_VERSION v0.19.0
  4. ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
  5. RUN chmod +x /tini
  6. # Add user
  7. RUN groupadd -g 1337 ab
  8. RUN groupadd -r psudo
  9. RUN useradd -rm -d /home/ab -s /bin/bash -g ab -G psudo -u 1337 ab
  10. # Create data mount
  11. RUN mkdir -p /data
  12. RUN chown ab:ab /data
  13. # Switch user
  14. USER ab
  15. WORKDIR /home/ab
  16. COPY mover.sh /home/ab/mover.sh
  17. COPY entrypoint.sh /home/ab/entrypoint.sh
  18. ENTRYPOINT [ "/tini", "--", "/home/ab/entrypoint.sh" ]