Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Add dockerfile and entrypoint script #46

Merged
merged 1 commit into from
Dec 8, 2018

Conversation

craigjmidwinter
Copy link
Contributor

I've created a Dockerfile and entrypoint script which should be good for production. The binary gets built in a build container separate from the resulting image.

Users can create a volume at /config to store the config.yml. The entrypoint script will check if the directory is empty when the container gets brought up, and if so, it will copy the config-example.yml into the /config/config.yml, which is the path that gets passed in as the config path.

If this is sufficient, it should solve #45

As @bmartel had mentioned, viper could be used to handle the config files, but that could probably be handled as a new issue

@dimiro1
Copy link
Owner

dimiro1 commented Dec 8, 2018

@craigjmidwinter Thank you for your contribution. This looks very nice.

@dimiro1 dimiro1 merged commit 0ff81ca into dimiro1:master Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants