Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions runtime/reference/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down