Advertisement
Guest User

Untitled

a guest
May 6th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.91 KB | None | 0 0
  1. FROM alpine:edge
  2.  
  3. ADD sqlite3.tar.gz /ghost/node_modules/
  4.  
  5. RUN echo "http://nl.alpinelinux.org/alpine/edge/main" > /etc/apk/repositories && \
  6.     echo "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
  7.     apk add -U wget iojs && \
  8.     apk upgrade && \
  9.     wget -q --no-check-certificate https://ghost.org/zip/ghost-0.6.0.zip -O /tmp/ghost.zip && \
  10.     unzip -q /tmp/ghost.zip -d /ghost && \
  11.     cd /ghost && \
  12.     npm install --production && \
  13.     sed 's/127.0.0.1/0.0.0.0/' /ghost/config.example.js > /ghost/config.js && \
  14.     sed -i 's/"iojs": "~1.2.0"/"iojs": "~1.6.4"/' package.json && \
  15. #    adduser ghost -D -h /ghost -s /bin/sh && \
  16. #    chown -R ghost.ghost * && \
  17.     npm cache clean && \
  18.     rm -rf /var/cache/apk/* /tmp/*
  19.  
  20. COPY entrypoint.sh /entrypoint.sh
  21. ENTRYPOINT ["/entrypoint.sh"]
  22. EXPOSE 2368
  23. #USER ghost
  24. WORKDIR /ghost
  25. CMD ["npm", "start", "--production"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement