forked from Jollyfant/node-seedlink-data-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 730 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 730 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
# Dockerfile for building NodeJS Seedlink Latency connector
#
# Build the container:
# $ docker build -t seedlink-latencies:1.0 .
#
# And run the container (may omit the -e flags):
# $ docker run --rm -p 8087:8087 -e "SERVICE_PORT=8087" -e "SERVICE_HOST=0.0.0.0" seedlink-latencies:1.0
FROM node:8
# Add metadata
LABEL maintainer="Mathijs Koymans"
LABEL email="koymans@knmi.nl"
# Set the work directory
WORKDIR /usr/src/app
# Copy the package json and install NPM dependencies (libxmljs)
COPY package*.json ./
RUN npm install
# Copy the rest of the source
COPY . .
# Set default environment variables
ENV SERVICE_HOST="" \
SERVICE_PORT="" \
SEEDLINK_HOST="" \
SEEDLINK_PORT=""
EXPOSE 8087
CMD ["npm", "start"]