An up-to-date Node.js image with Cloudflare Wrangler
10K+
A Node.js Docker image with Cloudflare Wrangler:
multiarch with support of amd64 and arm64,SBOM) changes,SBOM) attestation added using Syft,docker run -t --rm -v $(pwd):/data jfxs/wrangler /bin/sh -c "export WRANGLER_SEND_METRICS=false && export CLOUDFLARE_ACCOUNT_ID=<account_id> && export CLOUDFLARE_API_TOKEN=<api_token> && npx wrangler pages deploy /data/public --project-name my-project"
Example of usage with Gitlab-CI:
| CI/CD Protected/Masked Variables | Description | Type |
|---|---|---|
CLOUDFLARE_ACCOUNT_ID | Cloudflare account ID | Variable |
CLOUDFLARE_API_TOKEN | Cloudflare API token | Variable |
...
cloudflare-publish:
image: jfxs/wrangler:latest
stage: publish
variables:
WRANGLER_SEND_METRICS: "false"
script:
- if [ -z "$CLOUDFLARE_ACCOUNT_ID"]; then echo "CLOUDFLARE_ACCOUNT_ID is empty!" && exit 1; fi
- if [ -z "$CLOUDFLARE_API_TOKEN"]; then echo "CLOUDFLARE_API_TOKEN is empty!" && exit 1; fi
- npx wrangler pages deploy /data/public --project-name my-project
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
Docker latest tag is 4.112.0-001, 4.112, 4 and has:
| Name | Version | Type |
|---|---|---|
| ca-certificates | 20230311+deb12u1 | deb |
| curl | 7.88.1-10+deb12u15 | deb |
| git | 1:2.39.5-0+deb12u3 | deb |
| github.com/go-task/task/v3 | v3.52.0 | go-module |
| node | 24.18.0 | UnknownPackage |
| npm | 11.16.0 | npm |
| wrangler | 4.112.0 | npm |
Dockerhub Overview page has the details of the last published image.
Docker tag definition:
<wrangler_version>-<increment>
Example: 3.51.2-001
Cosign public key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----
The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.
To verify an image:
cosign verify --key cosign.pub $IMAGE_URI
To verify and get the software bill of materials (SBOM) attestation:
cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.
Content type
Image
Digest
sha256:6d7012b07…
Size
182.1 MB
Last updated
3 days ago
docker pull jfxs/wrangler