1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/ghost/Dockerfile

19 lines
398 B
Docker
Raw Normal View History

2014-12-06 11:25:39 +02:00
FROM ubuntu:14.04
MAINTAINER kev
WORKDIR /tmp
2014-12-06 11:54:16 +02:00
ADD https://deb.nodesource.com/setup /tmp/
ADD https://ghost.org/zip/ghost-latest.zip /tmp/
RUN bash setup
2014-12-06 15:07:23 +02:00
RUN apt-get install -y nodejs unzip
2014-12-06 11:25:39 +02:00
RUN unzip ghost-latest.zip -d /ghost
WORKDIR /ghost
2014-12-06 15:07:23 +02:00
RUN sed -e 's@127.0.0.1@0.0.0.0@' config.example.js > config.js
2014-12-06 11:25:39 +02:00
RUN npm install --production
2014-12-06 15:07:23 +02:00
VOLUME /ghost
2014-12-06 11:25:39 +02:00
EXPOSE 2368
CMD NODE_ENV=production npm start