A simple image ready to run Deno applications.
- Pull the image:
docker pull lucasfds/deno
- Run the image and check the Deno version:
docker run -it lucasfds/deno deno --version
Result:
deno 1.0.2
v8 8.4.300
typescript 3.9.2
- Pull the image:
docker pull lucasf ds/deno
- Start the image:
docker run -it lucasfds/deno /bin/bash
- Install the app:
deno install --allow-net https://deno.land/std/examples/echo_server.ts
- Start the app:
echo_server
Result:
Listening on 0.0.0.0:8080
FROM lucasfds/deno
RUN deno install -f --allow-net https://deno.land/std/examples/echo_server.ts
CMD ["echo_server"]
- Build the image:
docker build . -t deno-example
- Start the app:
docker run -it -p 8080:8080 deno-example
Result:
Listening on 0.0.0.0:8080