2017-02-20 15:30:47 +01:00
|
|
|
FROM alpine:edge
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2017-02-25 13:20:38 +01:00
|
|
|
ARG GHOST_VERSION=0.11.5
|
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 \
|
2016-05-06 23:31:37 +02:00
|
|
|
SMTP_PASS=123456 \
|
2016-04-11 15:59:32 +02:00
|
|
|
SMTP_USER=user \
|
2016-05-06 23:31:37 +02:00
|
|
|
SMTP_PORT=587 \
|
2016-04-26 20:06:22 +02:00
|
|
|
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
|
|
|
|
|
2016-06-30 13:15:04 +02:00
|
|
|
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& apk -U add \
|
2017-02-20 15:30:47 +01:00
|
|
|
libressl \
|
2016-04-11 15:59:32 +02:00
|
|
|
ca-certificates \
|
|
|
|
bash \
|
|
|
|
grep \
|
|
|
|
tini@commuedge \
|
2016-05-06 23:31:37 +02:00
|
|
|
su-exec \
|
2017-02-20 15:30:47 +01:00
|
|
|
nodejs \
|
2017-01-16 22:13:29 +01:00
|
|
|
&& wget -q https://github.com/TryGhost/Ghost/releases/download/${GHOST_VERSION}/Ghost-${GHOST_VERSION}.zip -P /tmp \
|
|
|
|
&& unzip -q /tmp/Ghost-${GHOST_VERSION}.zip -d /ghost \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& 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 \
|
2016-06-03 21:55:44 +02:00
|
|
|
&& apk del ca-certificates openssl \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& 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" \
|
2017-01-19 02:31:59 +01:00
|
|
|
ghost="Ghost v$VERSION" \
|
|
|
|
maintainer="Wonderfall <wonderfall@targaryen.house>"
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2016-09-16 17:08:06 +02:00
|
|
|
CMD ["run.sh"]
|