Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docker): made Apollo docker ready #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Polpetta
Copy link

@Polpetta Polpetta commented Oct 20, 2021

  • 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 馃挭

* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant