Sign inSign up

peschee/zx

By peschee

•Updated about 1 year ago

Dockerfile for running zx scripts.

Image
Integration & delivery
Developer tools
0

2.4K

peschee/zx repository overview

⁠docker-zx

Docker Image Version (latest semver)

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 knife
  • docker⁠ - in order to be able to run other containers
  • skopeo⁠ - because everybody needs a swiss army knife for docker

⁠Usage

This 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.

  • Create an example.mjs:
#!/usr/bin/env zx

const name = 'Foo';

await $`echo Hello, ${name}.`;
  • Mount example.mjs path and run:
docker run --rm -v "$(pwd):/tmp" peschee/docker-zx /tmp/example.mjs

Tag summary

Content type

Image

Digest

sha256:e42194b5f…

Size

153.2 MB

Last updated

about 1 year ago

docker pull peschee/zx