work/Dockerfile
sneak 27febcbc4d
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
latest
2021-10-14 02:04:14 -07:00

26 lines
446 B
Docker

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"]