Skip to content

Commit

Permalink
add missing runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxiaojie committed Jul 11, 2024
1 parent a9c532d commit 38ea218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion runtime/deno.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ func (d *Deno) GenerateDockerfile(path string) ([]byte, error) {

var denoTemplate = strings.TrimSpace(`
ARG VERSION={{.Version}}
FROM denoland/deno:${VERSION} as base
ARG BUILDER=docker.io/denoland/deno
FROM ${BUILDER}:${VERSION} as base
FROM debian:stable-slim
WORKDIR /app
Expand Down
3 changes: 2 additions & 1 deletion runtime/nextjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ CMD HOSTNAME="0.0.0.0" node server.js

var nextJSServerTemplate = strings.TrimSpace(`
ARG VERSION=lts
FROM node:${VERSION}-slim AS base
ARG BUILDER=docker.io/library/node
FROM ${BUILDER}:${VERSION}-slim AS base
# Install dependencies only when needed
FROM base AS deps
Expand Down

0 comments on commit 38ea218

Please sign in to comment.