Skip to content

miebach/gleam-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gleam-docker

Gleam development quickstart with docker compose.

Usage

Some common docker compose commands can be invoked using the 'make' command with parameters:

make upd # start the container in daemon mode
make it # get a shell in the container as user 'appuser'

An ./app/ directory in your project is mounted inside the container as /app/.

Now run gleam commands (in the container):

cd /app # This is your mounted directory
# create new projects in subdirectories of '/app':
gleam new --name hello ./hello # create new project 'hello'
cd hello
gleam test

Create new git repositories for the projects if needed. Outside the container:

cd app/hello
git init
# ...

The image created from the Dockerfile is on Dockerhub

https://hub.docker.com/repository/docker/miebach/gleam-docker/general

Some starting points for development

Example webserver

https://gleam.run/deployment/fly/#prepare-an-application

Alternative Dockerfile

https://gleam.run/deployment/fly/#add-a-dockerfile

About

docker compose and dockerfile for gleam development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published