File size: 331 Bytes
d31dfe1
 
4984411
0488b1b
d31dfe1
 
 
 
 
a749323
d31dfe1
 
 
 
 
 
4449f75
d31dfe1
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM denoland/deno:latest

# ENV DENO_DEPLOYMENT_ID=123

EXPOSE 7860

WORKDIR /app

# Prefer not to run as root.
# USER deno

RUN deno install --entrypoint main.ts

COPY . .

# Compile the main app so that it doesn't need to be compiled each startup/entry.
# RUN deno cache main.ts
RUN deno task build

CMD ["run", "-A", "main.ts"]