1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-01 22:41:47 +02:00
Files
dockerfiles/ghost/Dockerfile

20 lines
402 B
Docker
Raw Normal View History

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