mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
@@ -5,16 +5,14 @@ WORKDIR /tmp
|
|||||||
ADD https://deb.nodesource.com/setup /tmp/
|
ADD https://deb.nodesource.com/setup /tmp/
|
||||||
ADD https://ghost.org/zip/ghost-latest.zip /tmp/
|
ADD https://ghost.org/zip/ghost-latest.zip /tmp/
|
||||||
RUN bash setup
|
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
|
RUN unzip ghost-latest.zip -d /ghost
|
||||||
|
|
||||||
WORKDIR /ghost
|
WORKDIR /ghost
|
||||||
RUN sed -e 's@127.0.0.1@0.0.0.0@' \
|
RUN sed -e 's@127.0.0.1@0.0.0.0@' config.example.js > config.js
|
||||||
-e 's@http://my-ghost-blog.com/@/@' \
|
|
||||||
config.example.js > config.js
|
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
VOLUME /ghost/content/data/
|
VOLUME /ghost
|
||||||
EXPOSE 2368
|
EXPOSE 2368
|
||||||
|
|
||||||
CMD NODE_ENV=production npm start
|
CMD NODE_ENV=production npm start
|
||||||
|
|||||||
Reference in New Issue
Block a user