-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 921 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
#Create our image from Node 6.9-alpine
FROM node:6.9-alpine
#Create a new directory to run our app.
RUN mkdir -p /usr/src/app
#Set the new directory as our working directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
# COPY package*.json ./
# unsafe-perm needed for now
RUN npm install -g rhizome-server --unsafe-perm=true
# If you are building your code for production
# RUN npm install --only=production
# Bundle app source
COPY . .
# Our app runs on port 8000. Expose it!
# Using 8001 with Docker to be able to test it separate from running the server outside of Docker
EXPOSE 8001:8000
# Specify UDP for OSC communication?
# Same with OSC port 9001 outside of Docker maps to port 9000 used by rhizome
EXPOSE 9001:9000/UDP
# Run the application.
# CMD ["npm", "start"]
CMD ["rhizome", "config"]