feat: add uid and gid options for build

This commit is contained in:
Ravinou 2023-10-01 18:36:00 +02:00
parent ed97e52c60
commit 8df8c6a100
No known key found for this signature in database
GPG key ID: EEEE670C40F6A4D7

View file

@ -9,9 +9,12 @@ RUN echo "borgwarehouse ALL=(ALL) NOPASSWD: /usr/sbin/service ssh restart" >> /e
RUN echo "borgwarehouse ALL=(ALL) NOPASSWD: /usr/sbin/service cron restart" >> /etc/sudoers
RUN groupadd borgwarehouse
ARG UID=1001
ARG GID=1001
RUN useradd -m -g borgwarehouse borgwarehouse
RUN groupadd -g ${GID} borgwarehouse
RUN useradd -m -u ${UID} -g ${GID} borgwarehouse
RUN cp /etc/ssh/sshd_config /etc/ssh/moduli /home/borgwarehouse/