Skip to content

Instantly share code, notes, and snippets.

@groundwater
Last active December 24, 2015 06:29
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save groundwater/6757451 to your computer and use it in GitHub Desktop.
Save groundwater/6757451 to your computer and use it in GitHub Desktop.
#-- Boilerplate --
#
# This must be a layer-2 image
# Use the default unless you're customizing layer-2 or below
FROM nodeos/base
# Important to have /root/bin binaries accessible
ENV HOME /root
ENV PATH /root/bin:/usr/bin:/usr/sbin:/bin:/sbin
# Use `init` to boot the system
# You should probably not change this
ENTRYPOINT ["init"]
#
#-- /Boilerplate --
# Tell us who you are!
# Replace the following with your own contact
MAINTAINER Jacob Groundwater <groundwater@gmail.com>
# Use the `npkg` command to customize your build
# Each installed package will expose new funtionality
# to the NodeOS system
# Customize Your Build Here
# ------------------------
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
# ------------------------
# The CMD is run *after* init
# You can customize this
# Drop into a shell immediately after boot
CMD ["nsh"]
# -OR-
# Run a package immediately after boot
# CMD ["npkg","start","<PKG_NAME>"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment