项目作者: lucemans

项目描述 :
Unofficial docker images for deno - alpine, centos, ubuntu https://hub.docker.com/r/lucemans/docker-deno
高级语言: Shell
项目地址: git://github.com/lucemans/docker-deno.git
创建时间: 2020-05-25T09:34:20Z
项目社区:https://github.com/lucemans/docker-deno

开源协议:

下载



Warning this repository is still in the works, and hasnt been updated in a while, please use hayd/deno-docker instead

Available Images

Alpine Linux: lucemans/docker-deno:alpine ( ~24.46MB compressed or ~62.8MB uncompressed )

Centos: lucemans/docker-deno:centos ( ~92.85MB compressed or ~302MB uncompressed )

Debian: lucemans/docker-deno:debian (not available)

Ubuntu: lucemans/docker-deno:ubuntu ( ~65.4MB compressed or ~115MB uncompressed )

Run the image

To run the image using docker execute the following command:

  1. docker run lucemans/docker-deno:latest

Use in your app / Examples

To use this image for your own project see the following example Dockerfile

  1. FROM lucemans/docker-deno:latest
  2. COPY *.ts ./
  3. CMD ["deno", "run", "index.ts"]

Possible Optimization

Due to the nature of docker images it is completely possible to mount certain volumes to certain directories.

This means that in theory you could have multiple deno-based docker images sharing the same .cache directory.

Although this sincerely speeds up the boot-time of your applications, WE STRONGLY ADVISE AGAINST IT.

Seeing as it would allow for a serious security flaw and injection of certain modules.

Regardless, if you do plan on pursueing this strategy, it will be AT YOUR OWN RISK.



An example of how this could be done is using the following code.

  1. docker run -v <local_directory>:/root/.cache/deno <image>:<tag>

Benefits include that your containers should spin up faster, and will be able to completely skip the downloading phase.

Using this in development shouldn’t cause any harm tho is still at own risk.

Maintainers