FROM sneak/workbase # nix for pkgs pls RUN mkdir /nix && chown user:user /nix USER root ENV HOME /root COPY ./root / COPY ./root.sh /tmp/build/root.sh COPY ./user.sh /tmp/build/user.sh RUN bash /tmp/build/root.sh USER user ENV HOME /home/user RUN bash /tmp/build/user.sh USER root ENV HOME /root RUN rm -rf /tmp/build RUN chsh --shell /home/user/.nix-profile/bin/zsh user RUN chmod +rx /etc/service/*/run CMD ["/usr/local/sbin/runsvinit"]