Skip to content

Instantly share code, notes, and snippets.

@groundwater
Last active December 24, 2015 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groundwater/6748863 to your computer and use it in GitHub Desktop.
Save groundwater/6748863 to your computer and use it in GitHub Desktop.
Build a Custom NodeOS with a Dockerfile
FROM nodeos/base
MAINTAINER Jacob Groundwater <groundwater@gmail.com>
ENV HOME /root
ENV PATH /root/bin:/usr/bin:/usr/sbin:/bin:/sbin
# Use `init` to boot the system
ENTRYPOINT ["init"]
# Run `nsh` on boot
CMD ["nsh"]
# Install root command line
RUN npkg install bin-nsh
RUN npkg install bin-man
RUN npkg install bin-fs
RUN npkg install bin-cat
RUN npkg install bin-pwd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment