From 832579a565d9371bcc72b09dc01f03e7a7905920 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 6 Dec 2014 17:25:39 +0800 Subject: [PATCH] add ghost --- ghost/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ghost/Dockerfile diff --git a/ghost/Dockerfile b/ghost/Dockerfile new file mode 100644 index 0000000..f5ef406 --- /dev/null +++ b/ghost/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:14.04 +MAINTAINER kev + +RUN apt-get update +RUN apt-get install -y nodejs npm wget unzip + +WORKDIR /tmp +RUN wget https://ghost.org/zip/ghost-latest.zip +RUN unzip ghost-latest.zip -d /ghost +RUN rm ghost-latest.zip + +WORKDIR /ghost +RUN sed 's/127.0.0.1/0.0.0.0/' config.example.js > config.js +RUN npm install --production + +VOLUMN /ghost/content/data/ +EXPOSE 2368 + +CMD NODE_ENV=production npm start