-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 822 Bytes
/
Dockerfile
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
FROM denoland/deno:2.0.5 AS builder
WORKDIR /app
# COPY the files over
COPY deno.json deno.lock justfile ./
COPY main.jsx ./
COPY lib /app/lib
COPY components /app/components
COPY assistants/templates /app/assistants/templates
# Compile the code to /app/dist
RUN deno compile --allow-net --allow-env --allow-read --allow-run --allow-write --output dist/wilson main.jsx
RUN deno compile --allow-net --allow-env --allow-read --allow-run --allow-write --output dist/wilson-replay lib/replay-assistant.ts
RUN deno compile --allow-run --allow-net --allow-env --allow-read --allow-write --output dist/wilson-create-assistant lib/create-assistant.jsx
FROM denoland/deno:2.0.5
USER deno
COPY LICENSE ./
WORKDIR /app
COPY --from=builder /app/dist /app/
COPY assistants/templates /app/assistants/templates
CMD [ "./wilson" ]