Last active
December 24, 2015 06:29
-
-
Save groundwater/6757451 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-- 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 <[email protected]> | |
# 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