dockerfiles/ghost/Dockerfile

67 lines
1.9 KiB
Docker
Raw Normal View History

2016-04-27 14:23:51 +02:00
FROM wonderfall/node
2016-04-11 15:59:32 +02:00
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
2016-04-16 08:58:33 +02:00
ARG VERSION=0.7.9
2016-04-11 16:15:25 +02:00
ENV GHOST_NODE_VERSION_CHECK=false \
2016-04-11 15:59:32 +02:00
GID=991 \
UID=991 \
DOMAIN=my-ghost-blog.com \
SSL=False \
SYNTAX_HIGHLIGHTING=False \
HIGHLIGHTER_COLOR=light \
CUSTOM_SMTP=False \
SMTP_HOST=mail.domain.tld \
SMTP_PASS=12345 \
SMTP_USER=user \
SMTP_PORT=666 \
SMTP_SENDER_MAIL=user@domain.tld \
SMTP_SENDER_NAME=Ghost \
2016-04-11 15:59:32 +02:00
ENABLE_ISSO=False \
ISSO_HOST=isso.domain.tld \
ISSO_AVATAR=false \
2016-04-16 09:49:12 +02:00
ISSO_VOTE=false \
ENABLE_DISQUS=False \
DISQUS_SHORTNAME=shortname
2016-04-11 15:59:32 +02:00
VOLUME /ghost/content
RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk -U add \
ca-certificates \
bash \
grep \
tini@commuedge \
gosu@testing \
&& wget -q https://ghost.org/zip/ghost-$VERSION.zip -P /tmp \
&& unzip -q /tmp/ghost-$VERSION.zip -d /ghost \
&& cd /ghost \
&& npm install --production \
&& mv content/themes/casper casper \
&& mv config.example.js config.js \
&& sed -i 's/127.0.0.1/0.0.0.0/g' config.js \
&& npm cache clean \
&& apk del ca-certificates \
&& rm -rf /tmp/* /var/cache/apk/*
COPY run.sh /usr/local/bin/run.sh
COPY smtp.conf /usr/local/etc/smtp.conf
COPY isso.conf /usr/local/etc/isso.conf
2016-04-16 09:49:12 +02:00
COPY disqus.conf /usr/local/etc/disqus.conf
2016-04-11 15:59:32 +02:00
COPY prism_light.js /ghost/prismjs/light/prism.js
COPY prism_light.css /ghost/prismjs/light/prism.css
COPY prism_dark.js /ghost/prismjs/dark/prism.js
COPY prism_dark.css /ghost/prismjs/dark/prism.css
COPY prism.js.conf /usr/local/etc/prism.js.conf
COPY prism.css.conf /usr/local/etc/prism.css.conf
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 2368
LABEL description="Ghost CMS ready for production" \
ghost="Ghost v$VERSION"
CMD ["tini","--","run.sh"]