diff --git a/Dockerfile b/Dockerfile index 8d6a826f64..320b1c502a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:8 +FROM node:12.17 RUN mkdir /twilio WORKDIR /twilio @@ -6,7 +6,9 @@ WORKDIR /twilio ENV NODE_PATH /usr/local/lib/node_modules COPY lib ./lib +COPY spec ./spec +COPY examples ./examples COPY index.js . COPY package* ./ -RUN npm install . -g +RUN npm install . --include=dev diff --git a/Makefile b/Makefile index 433d2a75b0..33fe38ef20 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: test-install install test docs clean +.PHONY: test-install install test test-docker docs clean test-install: npm install --only=dev @@ -11,6 +11,10 @@ install: test: npm test +test-docker: + docker build -t twilio/twilio-node . + docker run twilio/twilio-node npm run ci + docs: npm run jsdoc