-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
46 lines (36 loc) · 992 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM alpine:3.9
ARG VERSION=2.23.4
ENV GHOST_NODE_VERSION_CHECK=false \
NODE_ENV=production \
GID=991 UID=991 \
ADDRESS=https://my-ghost-blog.com
WORKDIR /ghost
RUN apk -U upgrade \
&& apk add -t build-dependencies \
python-dev \
build-base \
&& apk add \
bash \
ca-certificates \
grep \
libressl \
nodejs \
nodejs-npm \
python \
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 \
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/*
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"]