From 2c8978f2977e9ff133102f6c9eb43fd0651a8110 Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 6 Dec 2014 21:07:23 +0800 Subject: [PATCH] update --- ghost/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ghost/Dockerfile b/ghost/Dockerfile index 1f21eef..c918112 100644 --- a/ghost/Dockerfile +++ b/ghost/Dockerfile @@ -5,16 +5,14 @@ WORKDIR /tmp ADD https://deb.nodesource.com/setup /tmp/ ADD https://ghost.org/zip/ghost-latest.zip /tmp/ RUN bash setup -RUN apt-get install -y build-essential nodejs unzip +RUN apt-get install -y nodejs unzip RUN unzip ghost-latest.zip -d /ghost WORKDIR /ghost -RUN sed -e 's@127.0.0.1@0.0.0.0@' \ - -e 's@http://my-ghost-blog.com/@/@' \ - config.example.js > config.js +RUN sed -e 's@127.0.0.1@0.0.0.0@' config.example.js > config.js RUN npm install --production -VOLUME /ghost/content/data/ +VOLUME /ghost EXPOSE 2368 CMD NODE_ENV=production npm start