Skip to content

Instantly share code, notes, and snippets.

@tatecarson
Created August 21, 2018 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tatecarson/3f3b58f307d5e8638e48bccff6fe8d6d to your computer and use it in GitHub Desktop.
Save tatecarson/3f3b58f307d5e8638e48bccff6fe8d6d to your computer and use it in GitHub Desktop.
#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 ./
RUN npm install -g rhizome-server
# 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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment