File size: 395 Bytes
e152268
 
 
 
 
 
4515f4c
 
ff12de1
 
e152268
 
c3d9125
4515f4c
e152268
 
 
 
c3d9125
e152268
6f02bab
 
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
FROM denoland/deno:latest


# 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

# RUN deno install

# Copy source
COPY . .

# Compile the main app
RUN deno cache main.ts

RUN deno -A npm:playwright install --with-deps chromium

# Run the app
CMD ["deno", "run", "-A", "main.ts"]