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

Should info/warn on FROM --platform=$BUILDPLATFORM #982

Open
2 of 3 tasks
skyzyx opened this issue Nov 2, 2023 · 1 comment
Open
2 of 3 tasks

Should info/warn on FROM --platform=$BUILDPLATFORM #982

skyzyx opened this issue Nov 2, 2023 · 1 comment

Comments

@skyzyx
Copy link

skyzyx commented Nov 2, 2023

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Specifying FROM --platform=$BUILDPLATFORM should be flagged as (a) syntactically-valid, but (b) probably not what you want if you're building a multi-platform image.

Actual behavior

No info/warning on this.

Steps to reproduce the behavior

Version

Haskell Dockerfile Linter 2.12.0

Dockerfile

# syntax=docker/dockerfile:1
FROM --platform=$BUILDPLATFORM alpine:3.18

Output

None.

Additional environment details (OS, stack version, etc.)

  • macOS 14.2β
  • Installed via Homebrew
  • Docker version 24.0.6, build ed223bc
@alexanderbazhenoff
Copy link

Have the same feature request to ignore FROM line, because in our ansible tests we template our dockerfile.j2 like:

FROM {{ item.image }}

Is it possible to ignore the whole line or switch to a more relaxed FROM value?

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

No branches or pull requests

2 participants