Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

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

Open
adamcathersides wants to merge 1 commit into
masterfrom
get_it_working
Open

Had to adjust a few bits to get the various containers to build#2
adamcathersides wants to merge 1 commit into
masterfrom
get_it_working

Conversation

@adamcathersides

Copy link
Copy Markdown
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..

@duckfullstop duckfullstop left a comment

Copy link
Copy Markdown
Member

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.

Comment thread nodecg/Dockerfile
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
Copy Markdown
Member

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
Copy Markdown
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

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