docker: do not use houdini user account before it exists.

This commit is contained in:
Bradley M. Kuhn 2021-08-09 18:44:15 -07:00
parent 3f8fe71762
commit bede0068a6

View file

@ -18,7 +18,7 @@ RUN rm -f /usr/share/keyrings/yarnpkg.gpg.key
RUN chown root.root /usr/share/keyrings/yarnpkg.gpg RUN chown root.root /usr/share/keyrings/yarnpkg.gpg
RUN chmod 644 /usr/share/keyrings/yarnpkg.gpg RUN chmod 644 /usr/share/keyrings/yarnpkg.gpg
# Run script to put keys in place and install # Run script to put keys in place and install
COPY --chown=houdini:houdini script/build/debian/node.sh houdini/script/build/debian/node.sh COPY --chown=root:root script/build/debian/node.sh houdini/script/build/debian/node.sh
RUN houdini/script/build/debian/node.sh RUN houdini/script/build/debian/node.sh
# Switch to houdini user, rest of file run in as that user after created # Switch to houdini user, rest of file run in as that user after created
RUN /sbin/useradd --home-dir /houdini --create-home --shell /bin/bash houdini RUN /sbin/useradd --home-dir /houdini --create-home --shell /bin/bash houdini