1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00
dockerfiles/ghost/Dockerfile
2014-12-25 16:12:46 +08:00

20 lines
402 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 nodejs unzip
RUN unzip ghost-latest.zip -d /ghost
WORKDIR /ghost
RUN sed -e 's@127.0.0.1@0.0.0.0@' config.example.js > config.js
RUN npm install --production
ENV NODE_ENV production
VOLUME /ghost
EXPOSE 2368
CMD npm start