We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e086970 commit a237ba1Copy full SHA for a237ba1
runtime/reference/docker.md
@@ -19,8 +19,8 @@ WORKDIR /app
19
# Copy source
20
COPY . .
21
22
-# Compile the main app
23
-RUN deno cache main.ts
+# Install dependencies (use just `deno install` if deno.json has imports)
+RUN deno install --entrypoint main.ts
24
25
# Run the app
26
CMD ["deno", "run", "--allow-net", "main.ts"]
@@ -37,7 +37,8 @@ For smaller production images:
37
FROM denoland/deno:latest AS builder
38
WORKDIR /app
39
40
41
42
43
# Production stage
44
FROM denoland/deno:latest
0 commit comments