From 2cca7738d739758e4cb73c1be7d2aefd21739c60 Mon Sep 17 00:00:00 2001 From: Lorentz Lasson Date: Sat, 6 Dec 2025 12:00:30 +0100 Subject: [PATCH] replace deprecated deno cache with deno install in docker examples --- runtime/reference/docker.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/reference/docker.md b/runtime/reference/docker.md index 2295cac43..3eb7ac6a7 100644 --- a/runtime/reference/docker.md +++ b/runtime/reference/docker.md @@ -19,8 +19,8 @@ WORKDIR /app # Copy source COPY . . -# Compile the main app -RUN deno cache main.ts +# Install dependencies (use just `deno install` if deno.json has imports) +RUN deno install --entrypoint main.ts # Run the app CMD ["deno", "run", "--allow-net", "main.ts"] @@ -37,7 +37,8 @@ For smaller production images: FROM denoland/deno:latest AS builder WORKDIR /app COPY . . -RUN deno cache main.ts +# Install dependencies (use just `deno install` if deno.json has imports) +RUN deno install --entrypoint main.ts # Production stage FROM denoland/deno:latest