Skip to content

Instantly share code, notes, and snippets.

@tahaozket
Created January 29, 2016 04:30
Show Gist options
  • Save tahaozket/1f1603051ce57a62f81b to your computer and use it in GitHub Desktop.
Save tahaozket/1f1603051ce57a62f81b to your computer and use it in GitHub Desktop.
FROM node:argon
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get -y install mongodb
CMD ["/usr/bin/mongod", "--config", "/etc/mongodb.conf"]
COPY package.json /usr/src/app/
RUN npm install
COPY . /usr/src/app
ENV APP_ID myAppId
ENV MASTER_KEY mySecretMasterKey
ENV FILE_KEY optionalFileKey
EXPOSE 8080
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment