{"repo":"denoland/deno_docker","free":true,"listed":false,"github":"https://github.com/denoland/deno_docker","clone":"git clone https://github.com/denoland/deno_docker.git","description":"Latest dockerfiles and images for Deno - alpine, centos, debian, ubuntu","language":"Dockerfile","stars":1018,"topics":["deno","docker","dockerfile","typescript"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"deno docker Docker files for Deno published on Docker Hub and GHCR: - Alpine Linux: denoland/deno:alpine - Debian: denoland/deno:debian (default) - Distroless: denoland/deno:distroless - Ubuntu: denoland/deno:ubuntu - Only the binary: denoland/deno:bin Images are available from both registries: --- Run locally To start the deno repl: To shell into the docker runtime: To run main.ts from your working directory: Here, -p 1993:1993 maps port 1993 on the container to 1993 on the host, -v $PWD:/app mounts the host working directory to /app on the container, and --allow-net /app/main.ts is passed to deno on the container. As a Dockerfile and build and run this locally: Using your own base image If you prefer to install deno in your own base image, you can use the denoland/deno:bin to simplify the process. Running on Google Cloud Run(GCR) Due to conflicts with google cloud run caching mechanism it's required to use different path for DENO DIR in your Dockerfile. Without it GCR instance will try to download deps every time. When running with --cached-only you will get Specified not found in cache . (optional) Add deno alias to your shell Alternatively, you can add deno command to your shell init file (e.g. .bashrc ): and in your terminal --- See example directory. Note: Dockerfiles provide a USER deno and DENO DIR is set to /deno-dir/ (which can be overridden). If running multiple Deno instances within the same image you can mount this directory as a shared volume.","default_branch":null,"files":null,"tree":[],"storefront":"/r/denoland","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/denoland/deno_docker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}