forked from ZZROTDesign/alpine-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 889 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
FROM Hypriot/rpi-node
MAINTAINER
#ENV VARIABLES
ENV GHOST_SOURCE /usr/src/app
ENV GHOST_CONTENT /var/lib/ghost
ENV GHOST_VERSION 0.11.7
ENV GHOST_URL https://github.com/TryGhost/Ghost/releases/download/${GHOST_VERSION}/Ghost-${GHOST_VERSION}.zip
#Change WORKDIR to ghost directory
WORKDIR $GHOST_SOURCE
RUN apk --no-cache add tar tini \
&& apk --no-cache add --virtual devs gcc make python libarchive-tools curl ca-certificates \
&& curl -sL ${GHOST_URL} | bsdtar -xf- -C ${GHOST_SOURCE} \
&& npm install --production \
&& apk del devs \
&& npm cache clean \
&& rm -rf /tmp/npm*
#Copy over our configuration filename
COPY ./config.js ${GHOST_SOURCE}
#Copy over, and grant executable permission to the startup script
COPY ./entrypoint.sh /
RUN chmod +x /entrypoint.sh
EXPOSE 2368
#Run Init System
ENTRYPOINT ["/sbin/tini"]
#Run Startup script
CMD [ "/entrypoint.sh" ]