Skip to main content
Module

x/fastro/templates/docker.ts

Fast and simple web application framework for deno
Go to Latest
File
import { DOCKER_VERSION, FASTRO_VERSION } from "../core/types.ts";
export const docker = `FROM hayd/alpine-deno:${DOCKER_VERSION}
# This command will download all the necessary files and cache them # so they are not downloaded again when the application is restarted.RUN deno cache https://raw.fastro.dev/v${FASTRO_VERSION}/deps.tsRUN deno cache https://raw.fastro.dev/v${FASTRO_VERSION}/cli/fastro.ts
WORKDIR /app
COPY . ./
CMD ["run", "--no-check", "-A", "https://raw.fastro.dev/v${FASTRO_VERSION}/cli/fastro.ts", "serve", "--port", "8080", "--production"]`;