work/Dockerfile

26 lines
446 B
Docker
Raw Normal View History

2020-10-26 23:39:54 +00:00
FROM sneak/workbase
2020-04-11 17:53:41 +00:00
2020-05-26 07:07:46 +00:00
# nix for pkgs pls
RUN mkdir /nix && chown user:user /nix
USER root
ENV HOME /root
COPY ./root /
2020-10-26 23:31:15 +00:00
COPY ./root.sh /tmp/build/root.sh
COPY ./user.sh /tmp/build/user.sh
2020-05-26 07:07:46 +00:00
RUN bash /tmp/build/root.sh
USER user
ENV HOME /home/user
RUN bash /tmp/build/user.sh
2020-04-11 17:53:41 +00:00
2020-05-26 07:07:46 +00:00
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
2020-04-11 17:53:41 +00:00
CMD ["/usr/local/sbin/runsvinit"]