From 4fbb83717f29e9df0b439b37fa80f9160088767d Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 6 Dec 2014 20:20:49 +0800 Subject: [PATCH] fix ghost volume --- ghost/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ghost/Dockerfile b/ghost/Dockerfile index b73e855..1f21eef 100644 --- a/ghost/Dockerfile +++ b/ghost/Dockerfile @@ -9,10 +9,12 @@ RUN apt-get install -y build-essential nodejs unzip RUN unzip ghost-latest.zip -d /ghost WORKDIR /ghost -RUN sed 's/127.0.0.1/0.0.0.0/' config.example.js > config.js +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 npm install --production -VOLUMN /ghost/content/data/ +VOLUME /ghost/content/data/ EXPOSE 2368 CMD NODE_ENV=production npm start