2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-27 07:31:40 +01:00
Files
dockerfiles_vimagick/ghost/Dockerfile
2014-12-06 20:20:49 +08:00

21 lines
484 B
Docker

FROM ubuntu:14.04
MAINTAINER kev
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 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 npm install --production
VOLUME /ghost/content/data/
EXPOSE 2368
CMD NODE_ENV=production npm start