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

Optimize Dockerfile #166

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Optimize Dockerfile #166

wants to merge 3 commits into from

Conversation

MisterDA
Copy link
Contributor

@MisterDA MisterDA commented Mar 3, 2023

  • Use BuildKit syntax to optimize copy from previous build step;
  • Remove apt cache at the same layer

@MisterDA MisterDA force-pushed the reduce-image-size branch 2 times, most recently from 219fbaa to edf27ef Compare March 3, 2023 16:43
@MisterDA
Copy link
Contributor Author

MisterDA commented Mar 3, 2023

Can't manage to make the deployer use BuildKit on itself, I'm puzzled.

@tmcgilchrist
Copy link
Member

Do you need some ENV variables set on the docker stack to enable BuildKit?
ocaml-ci uses this https://github.com/ocurrent/ocaml-ci/blob/master/stack.yml#L75-L78

- Use BuildKit syntax to optimize copy from previous build step;
- Remove apt cache at the same layer.
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.

2 participants