haini.sh/Containerfile.rootless
Nulo 2548ad883a
All checks were successful
continuous-integration/drone the build was successful
Containerfile: copiar ssh/known_hosts
2021-09-28 15:42:07 -03:00

14 lines
397 B
Text

FROM registry.nulo.in/sutty/haini.sh:root
RUN mkdir -p /home && \
adduser \
--disabled-password \
--gecos "" \
--home /home/suttier \
suttier && \
cp /root/.gemrc /home/suttier/.gemrc && \
cp -r /root/.ssh /home/suttier/.ssh && \
chown -R suttier:suttier /home/suttier/ && \
echo "suttier ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER suttier