Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion admission-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN pnpm run --filter=./admission-server build
# Deploy
RUN pnpm --filter=./admission-server --prod deploy pruned

FROM --platform=${BUILDPLATFORM} node:lts-slim
FROM --platform=${TARGETPLATFORM} node:lts-slim

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion cdn-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Deploy
RUN pnpm --filter=./cdn-server --prod deploy pruned

FROM --platform=${BUILDPLATFORM} node:lts-slim
FROM --platform=${TARGETPLATFORM} node:lts-slim

Check warning on line 24 in cdn-server/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion controlplane/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# Deploy
RUN pnpm --filter=./controlplane --prod deploy pruned

FROM --platform=${BUILDPLATFORM} node:lts-alpine
FROM --platform=${TARGETPLATFORM} node:lts-alpine

Check warning on line 35 in controlplane/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion graphqlmetrics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# Build router
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/graphqlmetrics/core.Version=${VERSION}" -a -o graphqlmetrics cmd/main.go

FROM --platform=${BUILDPLATFORM} gcr.io/distroless/base-debian12
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/base-debian12

Check warning on line 26 in graphqlmetrics/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

COPY --from=builder /app/graphqlmetrics /graphqlmetrics
COPY --from=builder /app/migrations /migrations
Expand Down
4 changes: 2 additions & 2 deletions keycloak/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

RUN ./build.sh

FROM --platform=${BUILDPLATFORM} bitnamilegacy/keycloak:26.2.5
FROM --platform=${TARGETPLATFORM} bitnamilegacy/keycloak:26.2.5

Check warning on line 15 in keycloak/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

COPY --from=0 /app/target/*.jar /opt/bitnami/keycloak/providers/

Expand All @@ -22,4 +22,4 @@
RUN /opt/bitnami/keycloak/bin/kc.sh build --db=postgres --metrics-enabled true --health-enabled true --http-relative-path "/"

EXPOSE 8080
EXPOSE 8443
EXPOSE 8443
5 changes: 2 additions & 3 deletions otelcollector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@

COPY ./otelcol-builder.yaml ./otelcol-builder.yaml

RUN ./ocb --config otelcol-builder.yaml \
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} ./ocb --config otelcol-builder.yaml \
&& chmod +x /app/otelcol-dev/otelcol \
&& /app/otelcol-dev/otelcol --version

FROM --platform=${BUILDPLATFORM} golang:1.25
FROM --platform=${TARGETPLATFORM} golang:1.25

Check warning on line 19 in otelcollector/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

COPY ./otel-config.yaml /etc/otel-config.yaml
COPY --from=builder /app/otelcol-dev/otelcol /otelcol

# smoke test
RUN /otelcol --version


ENTRYPOINT ["/otelcol"]
CMD ["--config", "/etc/otel-config.yaml"]
4 changes: 2 additions & 2 deletions router/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
-X 'github.com/wundergraph/cosmo/router/core.Date=${DATE}'" \
-a -o router cmd/router/main.go

FROM --platform=${BUILDPLATFORM} gcr.io/distroless/base-debian12:nonroot AS nonroot
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/base-debian12:nonroot AS nonroot

Check warning on line 34 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / image_scan (nonroot)

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 34 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / image_scan

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 34 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 34 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image (nonroot)

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 34 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build-router

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

# nonroot user uid
USER 65532
Expand All @@ -45,7 +45,7 @@

EXPOSE 3002

FROM --platform=${BUILDPLATFORM} gcr.io/distroless/base-debian12
FROM --platform=${TARGETPLATFORM} gcr.io/distroless/base-debian12

Check warning on line 48 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / image_scan (nonroot)

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 48 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / image_scan

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 48 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 48 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image (nonroot)

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

Check warning on line 48 in router/Dockerfile

View workflow job for this annotation

GitHub Actions / build-router

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

COPY --from=builder /app/router /router

Expand Down
4 changes: 2 additions & 2 deletions studio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ARG NEXT_PUBLIC_SENTRY_ENABLED
ARG NEXT_PUBLIC_SENTRY_REPLAY_ENABLED
ARG SENTRY_DEBUG
ARG SENTRY_AUTH_TOKEN

Check warning on line 27 in studio/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "SENTRY_AUTH_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG SENTRY_ORG
ARG SENTRY_PROJECT
ARG SENTRY_SERVER_SAMPLE_RATE
Expand All @@ -33,7 +33,7 @@
ENV NEXT_PUBLIC_SENTRY_ENABLED=$NEXT_PUBLIC_SENTRY_ENABLED
ENV NEXT_PUBLIC_SENTRY_REPLAY_ENABLED=$NEXT_PUBLIC_SENTRY_REPLAY_ENABLED
ENV SENTRY_DEBUG=$SENTRY_DEBUG
ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN

Check warning on line 36 in studio/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "SENTRY_AUTH_TOKEN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ENV SENTRY_ORG=$SENTRY_ORG
ENV SENTRY_PROJECT=$SENTRY_PROJECT
ENV SENTRY_SERVER_SAMPLE_RATE=$SENTRY_SERVER_SAMPLE_RATE
Expand All @@ -45,7 +45,7 @@

RUN pnpm run --filter=./connect --filter=./shared --filter=./studio --filter=./composition build

FROM --platform=${BUILDPLATFORM} node:lts-alpine
FROM --platform=${TARGETPLATFORM} node:lts-alpine

Check warning on line 48 in studio/Dockerfile

View workflow job for this annotation

GitHub Actions / build_push_image

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

RedundantTargetPlatform: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/

WORKDIR /app

Expand All @@ -68,4 +68,4 @@
ENV PORT=3000
ENV HOSTNAME=localhost

CMD ["node", "./studio/server.js"]
CMD ["node", "./studio/server.js"]
Loading