Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Had to adjust a few bits to get the various containers to build #2

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

Conversation

adamcathersides
Copy link
Contributor

Added a bit more info to the readme and also had to get rid of the .git files so the the bower stuff can install. It seems to build now..

Copy link
Collaborator

@duckfullstop duckfullstop left a comment

Choose a reason for hiding this comment

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

I'd prefer using .dockerignore for this instead of removing them once they're in the image. See my comment.

@@ -3,6 +3,8 @@ FROM nodecg/nodecg:latest
# Copy Bundle
COPY bundles /usr/src/app/bundles

# A hack to get the bower install to work. Something to do with .git files confusing it all. Meh.. https://github.com/bower/bower/issues/1492
RUN cd /usr/src/app/bundles/thebiggame && rm .git .gitignore .gitattributes
Copy link
Collaborator

Choose a reason for hiding this comment

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

I personally think this should be handled with a .dockerignore file, for two reasons: first, it means these files don't end up in the image at all, saving layer size; and second, it doesn't require an extra RUN layer.

Documentation on .dockerignore here: https://docs.docker.com/engine/reference/builder/#dockerignore-file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah good idea, i'll get on it

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants