mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
ghost: add 1.x
This commit is contained in:
45
ghost/1.x/Dockerfile
Normal file
45
ghost/1.x/Dockerfile
Normal file
@ -0,0 +1,45 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
ARG VERSION=1.0.0-rc.1
|
||||
|
||||
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 \
|
||||
ENABLE_DISQUS=False \
|
||||
DISQUS_SHORTNAME=shortname
|
||||
|
||||
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 \
|
||||
&& 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
|
||||
|
||||
LABEL description="Ghost CMS ${VERSION}" \
|
||||
maintainer="Wonderfall <wonderfall@targaryen.house>"
|
||||
|
||||
ENTRYPOINT ["run.sh"]
|
||||
CMD ["/bin/s6-svscan", "/etc/s6.d"]
|
Reference in New Issue
Block a user