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

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
Member

@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.

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
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
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.

3 participants