apollo icon indicating copy to clipboard operation
apollo copied to clipboard

feat(docker): made Apollo docker ready

Open Polpetta opened this issue 3 years ago • 0 comments

  • 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:

Polpetta avatar Oct 20 '21 21:10 Polpetta