roc/docker
2024-10-01 14:46:11 +13:00
..
nightly-debian-bookworm ditch C platform deps 2023-11-22 19:37:49 +01:00
nightly-debian-buster Merge branch '6045-docker-hub-official-image' of github.com:khalyomede/roc into 6045-docker-hub-official-image 2023-11-22 19:41:24 +01:00
nightly-debian-latest ditch C platform deps 2023-11-22 19:37:49 +01:00
nightly-ubuntu-2004 ditch C platform deps 2023-11-22 19:37:49 +01:00
nightly-ubuntu-2204 ditch C platform deps 2023-11-22 19:37:49 +01:00
nightly-ubuntu-latest ditch C platform deps 2023-11-22 19:37:49 +01:00
README.md Add more examples 2024-10-01 14:46:11 +13:00

Official Docker Images

The latest official Docker images are available on the Docker Hub.

For example, to pull the latest nightly-ubuntu-2204 image from the Docker Hub, run the following command in a terminal (assuming you have already installed Docker):

docker pull roclang/nightly-ubuntu-2204

To start an interactive container based on this image, run:

docker run -it --rm roclang/nightly-ubuntu-2204

Note: the --rm option will delete the container when you exit. Remove this option is you want to keep the container instead.

Inside the container, you can use the roc command directly, for example:

roc version
roc repl

Alternatively, you can start a container and run a Roc REPL in one shot:

docker run -it --rm roclang/nightly-ubuntu-2204 /usr/lib/roc/roc repl

If you want to create you own Docker image based on this image, add the following in your Dockerfile:

FROM roclang/nightly-ubuntu-2204:latest