This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
docker-ghost/Dockerfile

42 lines
883 B
Docker
Raw Permalink Normal View History

2017-11-03 20:33:40 +01:00
FROM alpine:3.6
2018-01-24 10:43:17 +01:00
ARG VERSION=1.20.3
2017-11-03 20:33:40 +01:00
ENV GHOST_NODE_VERSION_CHECK=false \
NODE_ENV=production \
GID=991 UID=991 \
ADDRESS=https://my-ghost-blog.com \
ENABLE_ISSO=False \
ISSO_HOST=isso.domain.tld \
ISSO_AVATAR=false \
ISSO_VOTE=false
WORKDIR /ghost
RUN apk -U --no-cache add \
bash \
ca-certificates \
grep \
libressl \
nodejs-current \
nodejs-current-npm \
s6 \
su-exec \
vim \
&& wget -q https://github.com/TryGhost/Ghost/releases/download/${VERSION}/Ghost-${VERSION}.zip -P /tmp \
&& unzip -q /tmp/Ghost-${VERSION}.zip -d /ghost \
&& npm install --production \
&& npm install -g knex-migrator \
&& mv content/themes/casper casper
COPY rootfs /
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/*
EXPOSE 2368
VOLUME /ghost/content
ENTRYPOINT ["startup"]
CMD ["/bin/s6-svscan", "/etc/s6.d"]