diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..143120a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu +MAINTAINER Styler + +FROM ubuntu +WORKDIR /usr/src/app +COPY package*.json ./ + +RUN apt-get update && apt-get -qq -y install curl +RUN curl -sL https://deb.nodesource.com/setup_9.x | bash - +RUN apt-get install -y \ + nodejs \ + libcairo2-dev \ + libjpeg8-dev \ + libpango1.0-dev \ + libgif-dev \ + build-essential \ + g++ + +RUN npm install + +EXPOSE 3002 +COPY . . + +CMD [ "npm", "start" ] \ No newline at end of file diff --git a/package.json b/package.json index 766b2d3..485c52a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "start": "node index.js", + "docker": "docker build -t beebot ." }, "author": "", "license": "ISC",