apollo
apollo copied to clipboard
feat(docker): made Apollo docker ready
- Fix little bugs regarding the password read and used
viper
instead -
createFile
will automatically create parents folder too now - The server won't kill itself when fails to scrape something
- Expose the right port, set a default working dir and moved in all the necessary files in order to make a minimal working image
- Docker container will be built without kindle and podcast integrations
You can try to build & play with the image with the following commands:
docker build -t test/test . && docker run --rm -p8993:8993 -ePASSWORD=supersecurepassword test/test
I've used multi-stage docker build so that the final image is still slim!
I used viper
instead of your library since this way you can either set the password via environment variable or via .env
file. viper
will perform transparently the variable override so it will give more flexibility to the server while keeping the codebase simple!
I hope this helps the project somehow :muscle: