File size: 460 Bytes
e152268
 
0d799ef
e152268
 
 
 
0d799ef
4515f4c
5e05e7e
ff12de1
0d799ef
a13a5c6
e152268
c3d9125
4515f4c
e152268
 
 
0fff9b8
 
e152268
c3d9125
e152268
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"]