Skip to content

Commit

Permalink
Remove old cgo option
Browse files Browse the repository at this point in the history
This is no longer required

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Jan 21, 2025
1 parent 43c31db commit b07e85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN VERSION=$(git describe --all --exact-match `git rev-parse HEAD` | grep tags
--ldflags "-s -w \
-X github.com/openfaas/cron-connector/version.GitCommit=${GIT_COMMIT}\
-X github.com/openfaas/cron-connector/version.Version=${VERSION}" \
-a -installsuffix cgo -o cron-connector .
-o cron-connector .

FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.2 AS ship

Check warning on line 30 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM:-linux/amd64} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/
LABEL org.label-schema.license="MIT" \
Expand Down

0 comments on commit b07e85a

Please sign in to comment.