Created
April 7, 2017 10:17
-
-
Save dca/31940467848664d7e9a2eaf4f4b6c688 to your computer and use it in GitHub Desktop.
BioServerAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:16.04 | |
| RUN apt-get update | |
| RUN apt-get install -y curl | |
| # nodejs | |
| RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
| # | |
| RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 | |
| RUN echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list | |
| # | |
| RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
| RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
| # | |
| # | |
| # | |
| RUN apt-get update | |
| RUN apt-get install -y build-essential git-all python | |
| RUN apt-get install -y nodejs mongodb-org yarn | |
| # RUN npm install node-dev -g | |
| # | |
| # | |
| # Create app directory | |
| RUN mkdir -p /usr/src/app | |
| WORKDIR /usr/src/app | |
| COPY package.json /usr/src/app/ | |
| RUN yarn install | |
| COPY . /usr/src/app | |
| EXPOSE 3000 | |
| CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment