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

Decrease docker image size #1694

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Decrease docker image size #1694

merged 2 commits into from
Jun 13, 2019

Conversation

mrbrownt
Copy link
Contributor

rm commands need to be in the same layer as that adds whatever gets cached or is unneeded. This is because docker layers are append only.

rm commands need to be in the same layer as that adds whatever gets cached or is unneeded. This is because docker layers are append only.

Signed-off-by: Todd Brown <[email protected]>
@mrbrownt mrbrownt requested a review from a team as a code owner June 13, 2019 16:55
@markbates
Copy link
Member

If I’m reading this correctly you’re deleting all the go source we just downloaded. We do that for a few reasons. Can you explain what this accomplishes?

Dockerfile.build Show resolved Hide resolved
Dockerfile.build Outdated Show resolved Hide resolved
@markbates markbates merged commit c74db77 into gobuffalo:master Jun 13, 2019
@markbates
Copy link
Member

Thanks!

markbates added a commit that referenced this pull request Jun 13, 2019
markbates added a commit that referenced this pull request Jun 13, 2019
markbates pushed a commit that referenced this pull request Jun 13, 2019
* Decrease docker image size

rm commands need to be in the same layer as that adds whatever gets cached or is unneeded. This is because docker layers are append only.

Signed-off-by: Todd Brown <[email protected]>

* Add mkdir back in to dockerfile

Signed-off-by: Todd Brown <[email protected]>
markbates added a commit that referenced this pull request Jun 14, 2019
* Back to development

* Fix FUNDING.yml syntax errors (#1688)

* don't need to run go get for mods when building (#1691)

* Moving Plugins into Core (#1670)

* Decrease docker image size (#1694)

* Decrease docker image size

rm commands need to be in the same layer as that adds whatever gets cached or is unneeded. This is because docker layers are append only.

Signed-off-by: Todd Brown <[email protected]>

* Add mkdir back in to dockerfile

Signed-off-by: Todd Brown <[email protected]>

* bump mods and fixes release 1.6.2

* attrs and clara

* bump
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