-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (24 loc) · 699 Bytes
/
Dockerfile
File metadata and controls
38 lines (24 loc) · 699 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
ARG DENO_VERSION=2.3.1
ARG ALPINE_VERSION=3.18
FROM denoland/deno:bin-$DENO_VERSION AS deno
# src/bot
FROM frolvlad/alpine-glibc:alpine-$ALPINE_VERSION AS bot
COPY --from=deno /deno /usr/local/bin/deno
WORKDIR /shared
ADD src/shared .
WORKDIR /app
ADD src/bot .
RUN deno install --entrypoint main.ts bot.ts worker.ts
CMD ./entrypoint.sh
# src/server
FROM frolvlad/alpine-glibc:alpine-$ALPINE_VERSION AS server
COPY --from=deno /deno /usr/local/bin/deno
RUN apk update
RUN apk upgrade
RUN apk add --no-cache ffmpeg
WORKDIR /shared
ADD src/shared .
WORKDIR /app
ADD src/server .
RUN deno install --entrypoint main.ts tasks/stale.ts tasks/board.ts tasks/processing.ts
CMD ./entrypoint.sh