This repository contains a Dockerfile for creating a Docker image with Gleam programming language.
Gleam is a friendly language for building type-safe, scalable systems! It compiles to Erlang and has a Go-like syntax with a powerful type system.
This Docker image provides a ready-to-use environment for Gleam development. It's based on the official Erlang image and includes the latest stable version of Gleam.
To pull the pre-built image from Docker Hub:
docker pull michalhodur/gleam:latest
If you want to build the image yourself:
-
Clone this repository:
git clone https://github.com/mjwhodur/gleam-docker.git cd gleam-docker
-
Build the Docker image:
docker build .
To run a Gleam project using this Docker image:
docker run -it --rm -v $(pwd):/app michalhodur/gleam:latest gleam run
This command mounts your current directory to /app
in the container and runs the Gleam project.
The Dockerfile uses a multi-stage build to keep the final image size small:
- It starts with the official Erlang image.
- Downloads and installs the latest version of Gleam.
- Sets up the working directory and default command.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
If you have any questions or feedback, please open an issue on this GitHub repository.