forked from rdkcentral/mock-firebolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.coreSdk
50 lines (29 loc) · 1.07 KB
/
Dockerfile.coreSdk
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
45
46
47
48
49
50
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 && \
npm run clean && \
npm run build:core && \
npm run build:mf && \
npm run build:discovery
# ----------------------------------- 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, only the core SDK is enabled. When using 'docker run', users can pass --manage --discovery as command-line parameters
CMD [ ]