forked from c-base/cbeam-telemetry-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 681 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (19 loc) · 681 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 node:8
# Expose the HTTP port for OpenMCT
EXPOSE 8080
# Export the Websocket port for OpenMCT live telemetry
EXPOSE 8082
# Install inotify-tools. We use it in server.sh to restart the server on certain file changes
RUN apt-get update && apt-get install -y inotify-tools
# Reduce npm install verbosity, overflows Travis CI log view
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir -p /var/cbeam-telemetry-server
WORKDIR /var/cbeam-telemetry-server
COPY . /var/cbeam-telemetry-server
# Install dependencies and build the OpenMCT package
RUN npm install
RUN npm run build
RUN cp -R node_modules/openmct/dist openmct
# Set OpenMCT location
ENV OPENMCT_ROOT openmct
CMD ./server.sh