Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Cleaned up dockerfile, moved create test #50

Merged
merged 5 commits into from Oct 23, 2019
Merged

Conversation

bmonkman
Copy link
Member

No description provided.


FROM alpine:edge
FROM alpine:3.10
Copy link
Member Author

Choose a reason for hiding this comment

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

Edge is the dev version, we should pin to a stable version.

mv commit0 /usr/local/bin
RUN upx --lzma /usr/local/bin/*
mv commit0 /usr/local/bin && \
upx --lzma /usr/local/bin/commit0
Copy link
Member Author

Choose a reason for hiding this comment

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

Separating this into two steps means most of the time we only need to re-compress the commit0 binary, not the other stuff that never changes.

@@ -0,0 +1,7 @@
Dockerfile
Copy link
Member Author

Choose a reason for hiding this comment

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

We should make sure to make this file as strict as possible, otherwise all this stuff gets included in COPY . . and busts the cache for all sorts of changes to various files.

@bmonkman bmonkman merged commit 4fc10c3 into master Oct 23, 2019
@bmonkman bmonkman deleted the cleanup-dockerfile branch October 23, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants