Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
view the rest of the comments
You can do it bro. Dockerfiles are basically just shell scripts with a few extras.
It uses npm to build so start with a node base container. You can find them on docker hub. Alpine-based images are a good starting point.
If you need to access files from outside of the container, include a
VOLUME
line. If it needs to be accessible from a specific network port, add anEXPOSE
line. Add aCMD
line at the end to start whatever command needs to be run to start the process.Save your Dockerfile and build.
I wouldn't use AppD's node agent as a starting point unless you're planning to use AppD. Which you shouldn't unless you're a big business still talking about future plans to move to the cloud.
Picking a random image from dockerhub isn't the best for security or reliability. You're better off sticking to official images offered by a large, well known project. There's even an official node image https://hub.docker.com/_/node/
Figured this would be one of the responses. Thanks. I don't interact with node very often. I assumed there was a better option but wasn't sure which.. This is just the first result.
Definitely would look into it. Thanks