-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (16 loc) · 605 Bytes
/
Dockerfile
File metadata and controls
28 lines (16 loc) · 605 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
FROM debian:bullseye-slim as builder
RUN apt-get update && apt-get install -y curl unzip git
RUN curl -fsSL https://deno.land/install.sh | bash
COPY . /app
WORKDIR /app
ENV DENO_INSTALL="/root/.deno"
ENV PATH="$DENO_INSTALL/bin:$PATH"
# API tcp / ZeroMQ WebSocket / stdIn,stdOut,stdErr Websocket
EXPOSE 36911 36910 36909
ENTRYPOINT [ "deno", "task", "dev-server" ]
FROM builder as runner
# This is equivalent to running npm install.
RUN deno cache --unstable ./mod.ts
# API tcp / ZeroMQ WebSocket / stdIn,stdOut,stdErr Websocket
EXPOSE 36911 36910 36909
CMD [ "deno", "task", "launch-server" ]