Added docker support

This commit is contained in:
Styler 2017-12-15 14:22:51 +01:00
parent 7395ab4985
commit 028362cf67
2 changed files with 27 additions and 1 deletions

24
Dockerfile Normal file
View file

@ -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" ]

View file

@ -4,7 +4,9 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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": "", "author": "",
"license": "ISC", "license": "ISC",