a containerized deno application, lovingly nicknamed Jimmy Deno
🚀 https://jimmy-deno.herokuapp.com/
This repo contains a single multi-stage Dockerfile (/Dockerfile
) to containerize the deno dev environment.
If you'd like to see this project set up with two separate dockerfiles (in case, I don't know, you just reeeeeally love separation of concerns?) check out this commit.
there are two ways to get started:
-
the Quick Start way
-
the Slow Start way
Use the makefile. Run make
to build the sample project and start a server listening on port 8000.
You need to build the image and then run the container. Once again, these commands can be found in the makefile. But, here they are anyway:
-
Build the base image:
docker build -f docker/Dockerfile -t app .
This creates an image named "app" -
Run the container:
docker run -d --name server --init -p 8000:8000 app
This creates a container named "server" from the "app" image, starts the server, and starts listening on port 8000. open localhost:8000. -
Make some changes.
make fmt
to format your TS.make r
to restart theserver
container. Refresh your browser to see your changes
Stuff to do
- data layer
- migrate to docker-compose
- dockerize db layer (postgres?), and add to docker-compose
-
Volumes? (How to have the container update when local
.ts
files are updated.) -
deployment: deploy the container to heroku