Spaces:
Runtime error
Runtime error
| FROM denoland/deno:latest | |
| # USER root | |
| # Create working directory | |
| # COPY deno.json deno.lock ./ | |
| # RUN chmod -R 777 /app | |
| # ENV PLAYWRIGHT_BROWSERS_PATH=/app/node_modules/playwright/.local-browsers | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| # ENV PLAYWRIGHT_BROWSERS_PATH=0 | |
| RUN deno -A npm:playwright install --with-deps chromium | |
| WORKDIR /app | |
| # RUN deno install | |
| # Copy source | |
| COPY . . | |
| # Compile the main app | |
| RUN deno cache main.ts | |
| # Run the app | |
| CMD ["deno", "run", "-A", "main.ts"] | |