mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-22 05:09:09 +02:00
fix ghost volume
This commit is contained in:
parent
f30964626d
commit
4fbb83717f
@ -9,10 +9,12 @@ RUN apt-get install -y build-essential nodejs unzip
|
|||||||
RUN unzip ghost-latest.zip -d /ghost
|
RUN unzip ghost-latest.zip -d /ghost
|
||||||
|
|
||||||
WORKDIR /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
|
RUN npm install --production
|
||||||
|
|
||||||
VOLUMN /ghost/content/data/
|
VOLUME /ghost/content/data/
|
||||||
EXPOSE 2368
|
EXPOSE 2368
|
||||||
|
|
||||||
CMD NODE_ENV=production npm start
|
CMD NODE_ENV=production npm start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user