Sign inSign up

hayd/deno

By hayd

Updated over 5 years ago

https://github.com/hayd/deno-docker

Image
30

100K+

hayd/deno repository overview

ANNOUNCEMENT

hayd/deno docker images have now been moved into the official denoland repository https://hub.docker.com/r/denoland/deno.

These images will no longer be updated. Please update your dockerfiles to use denoland/deno.



Docker files for deno published on Dockerhub:

For example:

FROM hayd/deno:1.5.2

EXPOSE 1993

WORKDIR /app

# Prefer not to run as root.
USER deno

# Cache the dependencies as a layer (this is re-run only when deps.ts is modified).
# Ideally this will download and compile _all_ external files used in main.ts.
COPY deps.ts /app
RUN deno cache deps.ts

# These steps will be re-run upon each file change in your working directory:
ADD . /app
# Compile the main app so that it doesn't need to be compiled each startup/entry.
RUN deno cache main.ts

# These are passed as deno arguments when run with docker:
CWD ["run", "--allow-net", "main.ts"]

and run locally:

$ docker build -t app . && docker run -it --init -p 1993:1993 app

See example directory.

Note: Dockerfiles provide a USER deno and DENO_DIR is set to /deno-dir/ (which can be overridden).

Tag summary

Content type

Image

Digest

Size

39.3 MB

Last updated

over 5 years ago

docker pull hayd/deno