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

Add conf.js to .dockerignore and mount it as volume in docker-compose #2559

Merged
merged 1 commit into from Dec 14, 2020

Conversation

sskender
Copy link
Contributor

Add conf.js to .dockerignore to prevent rebuilding entire docker image when conf.js file is changed.
Instead, just mount it as volume to docker-compose.yml

@@ -7,6 +7,7 @@ services:
image: fculpo/zenbot:latest
volumes:
- ./simulations/:/app/simulations/
- ./conf.js:/app/conf.js
Copy link
Owner

@DeviaVir DeviaVir Dec 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Might want to mount it as read-only as to make sure we only change it from one side

e.g.

- ./conf.js:/app/conf.js:ro

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, great idea. I updated the pull request.

Copy link
Owner

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 great, thanks for contributing!

@DeviaVir DeviaVir merged commit 2f2d161 into DeviaVir:unstable Dec 14, 2020
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.

None yet

2 participants