mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-19 05:56:39 +02:00
feat: add uid and gid options for build
This commit is contained in:
parent
ed97e52c60
commit
8df8c6a100
|
@ -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/
|
||||
|
||||
|
|
Loading…
Reference in a new issue