From cbc8a3877e56c1c0f2fa861c018f4bd59a9f2839 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 20 Jun 2016 11:26:23 +0200 Subject: [PATCH] Use alpine for Docker image. --- .dockerignore | 2 ++ Dockerfile | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..85dcc16 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.git +node_modules diff --git a/Dockerfile b/Dockerfile index aefc7b7..c584048 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,13 @@ # docker-loghose # -# VERSION 0.1.0 +# VERSION 0.2.0 -FROM node:0.10-onbuild +FROM mhart/alpine-node:4 MAINTAINER Matteo Collina +WORKDIR /src +ADD . . + +RUN npm install --production + +CMD ["npm", "start"]