Skip to content

Commit

Permalink
chore(ci): Ignore hadolint DL3029
Browse files Browse the repository at this point in the history
> Do not use --platform flag with FROM

While this would be a good idea for single-arch images, on amd64, this image must still resolve but is not used in the final image
  • Loading branch information
USA-RedDragon committed Feb 11, 2024
1 parent d38eef1 commit 68249a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ RUN wget -q https://github.com/gorcon/rcon-cli/archive/refs/tags/v${RCON_VERSION
&& go build -v ./cmd/gorcon

FROM cm2network/steamcmd:root as base-amd64
# Ignoring --platform=arm64 as this is required for the multi-arch build to continue to work on amd64 hosts
# hadolint ignore=DL3029
FROM --platform=arm64 sonroyaalmerol/steamcmd-arm64:latest as base-arm64

Check failure on line 18 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint - Docker

DL3007 warning: Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag

ARG TARGETARCH
Expand Down

0 comments on commit 68249a9

Please sign in to comment.