FROM ubuntu:16.04 RUN apt-get update RUN apt-get install -y curl ffmpeg build-essential python libssl-dev RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - RUN apt-get install -y nodejs RUN mkdir -p /usr/src/app COPY bundle/ /usr/src/app/ WORKDIR /usr/src/app/ RUN cd programs/server && npm install && npm uninstall fibers && npm install fibers EXPOSE 3000 ENV MONGO_URL mongodb://mongo:27017/soundwave ENV ROOT_URL http://localhost ENV UPLOAD_DIR /usr/src/upload ENV PORT 3000 CMD ["node", "main.js"]