Dockerfile for running zx scripts.
2.4K
Dockerfile for running zx scripts. The container is based on the official Alpine Linux Node image. Some additional tools are installed inside the container:
curl - because everybody needs a swiss army knifedocker - in order to be able to run other containersskopeo - because everybody needs a swiss army knife for dockerThis container uses google/zx as an entrypoint to run .mjs files. To run files in this container you must mount your source code or use this image as a base image.
example.mjs:#!/usr/bin/env zx
const name = 'Foo';
await $`echo Hello, ${name}.`;
example.mjs path and run:docker run --rm -v "$(pwd):/tmp" peschee/docker-zx /tmp/example.mjs
Content type
Image
Digest
sha256:e42194b5f…
Size
153.2 MB
Last updated
about 1 year ago
docker pull peschee/zx