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

feat: buildkit with multi stage build #2025

Merged
merged 9 commits into from
Dec 6, 2021
Merged

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented Dec 6, 2021

Closes #1948

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security. vulnerability, I
    confirm that I got green light (please contact
    [email protected]) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

@aeneasr aeneasr force-pushed the buildkit_and_multi_stage_build branch from 5728f5d to 0d28e8c Compare December 6, 2021 17:13
@aeneasr aeneasr merged commit 57ab7f7 into master Dec 6, 2021
@aeneasr aeneasr deleted the buildkit_and_multi_stage_build branch December 6, 2021 18:41
@@ -1,4 +1,5 @@
FROM golang:1.16.10-alpine3.14 AS builder
FROM golang:1.17-alpine3.15 AS base
# syntax = docker/dockerfile:1-experimental
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be the first line in the file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Personally I do not like to use it and instead rely on Docker 20+ already supporting those additional features. The reason why I do not like it is because if you provide it it makes Docker always pull the docker/dockerfile image first, before doing anything else, which delays the build process.

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this has been merged with the "comment" in the wrong line. This way it does nothing and is very missleading.

peturgeorgievv pushed a commit to senteca/kratos-fork that referenced this pull request Jun 30, 2023
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.

4 participants