T1ckbase
?
a13a5c6
raw
history blame
460 Bytes
FROM denoland/deno:latest
USER root
# Create working directory
WORKDIR /app
# COPY deno.json deno.lock ./
RUN chmod -R 777 /app
# ENV PLAYWRIGHT_BROWSERS_PATH=/app/node_modules/playwright/.local-browsers
ENV PLAYWRIGHT_BROWSERS_PATH=/.cache/ms-playwright
# RUN deno install
# Copy source
COPY . .
RUN deno -A npm:playwright install --with-deps chromium
# Compile the main app
RUN deno cache main.ts
# Run the app
CMD ["deno", "run", "-A", "main.ts"]