forked from rdkcentral/mock-firebolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (25 loc) · 914 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM node:16
# Create directory for firebolt-related projects
WORKDIR /usr/src/firebolt
# ------------------------------------ CLI ------------------------------------
# Create directory for cli
WORKDIR /usr/src/firebolt/mock-firebolt/cli
# Copy over /cli directory
COPY ./cli .
RUN npm install
# ----------------------------------- Server -----------------------------------
# Create directory for server
WORKDIR /usr/src/firebolt/mock-firebolt/server
# Copy over /server directory
COPY ./server .
RUN npm install
# ----------------------------------- General ----------------------------------
EXPOSE 9998
EXPOSE 3333
ENV PATH=${PATH}:/usr/src/firebolt/mock-firebolt/cli
# Handy for debugging:
# ENTRYPOINT ["tail", "-f", "/dev/null"]
WORKDIR /usr/src/firebolt/mock-firebolt/server
ENTRYPOINT [ "npm", "run", "start" ]
# By default, core/manage OpenRPC retrieved from HTTP is enabled.
CMD [ ]