Created
February 19, 2023 12:24
-
-
Save bisgardo/de9efee5405766e560c9b855d343bfdf to your computer and use it in GitHub Desktop.
Dockerfile for building Cloudflare Wrangler CLI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run from root of freshly cloned 'https://github.com/cloudflare/workers-sdk'. | |
FROM debian:bookworm-slim | |
RUN apt-get update && apt-get -y install npm libc++1 && rm -rf /var/lib/apt/lists/* | |
WORKDIR /app | |
COPY . . | |
RUN npm install | |
WORKDIR /app/packages/wrangler | |
RUN npm install | |
RUN npm run build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can extract fully built repo using
docker run --rm -v $PWD/out:/out cloudflare:worker cp -Tr /app /out
and then run the CLI from
./out/packages/wrangler
using