You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
452 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. ENTRYPOINT [ "/tini", "--" ]