| FROM denoland/deno:latest | |
| # Create working directory | |
| WORKDIR /app | |
| # Copy source | |
| COPY . . | |
| # Compile the main app | |
| RUN deno cache main.ts | |
| # Run the app | |
| CMD ["deno", "run", "--allow-net", "main.ts"] | |
| FROM denoland/deno:latest | |
| # Create working directory | |
| WORKDIR /app | |
| # Copy source | |
| COPY . . | |
| # Compile the main app | |
| RUN deno cache main.ts | |
| # Run the app | |
| CMD ["deno", "run", "--allow-net", "main.ts"] | |