mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
67 lines
1.8 KiB
Docker
67 lines
1.8 KiB
Docker
FROM wonderfall/node
|
|
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
|
|
|
|
ARG VERSION=0.8.0
|
|
|
|
ENV GHOST_NODE_VERSION_CHECK=false \
|
|
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=123456 \
|
|
SMTP_USER=user \
|
|
SMTP_PORT=587 \
|
|
SMTP_SENDER_MAIL=user@domain.tld \
|
|
SMTP_SENDER_NAME=Ghost \
|
|
ENABLE_ISSO=False \
|
|
ISSO_HOST=isso.domain.tld \
|
|
ISSO_AVATAR=false \
|
|
ISSO_VOTE=false \
|
|
ENABLE_DISQUS=False \
|
|
DISQUS_SHORTNAME=shortname
|
|
|
|
VOLUME /ghost/content
|
|
|
|
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
|
&& apk -U add \
|
|
openssl \
|
|
ca-certificates \
|
|
bash \
|
|
grep \
|
|
tini@commuedge \
|
|
su-exec \
|
|
&& 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 openssl \
|
|
&& 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
|
|
COPY disqus.conf /usr/local/etc/disqus.conf
|
|
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 ["/sbin/tini","--","run.sh"]
|