2015-12-06 11:02:17 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for ghost-arm
|
|
|
|
#
|
|
|
|
|
2016-01-16 01:19:42 +02:00
|
|
|
FROM vimagick/alpine-arm
|
2015-12-06 11:02:17 +02:00
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
2016-02-23 02:09:47 +02:00
|
|
|
ENV GHOST_VER 0.7.8
|
2015-12-06 13:35:17 +02:00
|
|
|
ENV GHOST_URL https://ghost.org/archives/ghost-$GHOST_VER.zip
|
2015-12-06 11:02:17 +02:00
|
|
|
ENV GHOST_SOURCE /usr/src/ghost
|
|
|
|
ENV GHOST_CONTENT /var/lib/ghost
|
|
|
|
|
2015-12-06 11:29:04 +02:00
|
|
|
WORKDIR $GHOST_SOURCE
|
2015-12-06 11:02:17 +02:00
|
|
|
VOLUME $GHOST_CONTENT
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk add -U bash \
|
|
|
|
nodejs \
|
|
|
|
&& apk add -t TMP build-base \
|
|
|
|
curl \
|
|
|
|
python \
|
2015-12-06 13:35:17 +02:00
|
|
|
&& curl -sSL $GHOST_URL -o ghost.zip \
|
|
|
|
&& unzip ghost.zip \
|
2015-12-06 11:02:17 +02:00
|
|
|
&& npm install --production \
|
2015-12-06 13:35:17 +02:00
|
|
|
&& npm cache clean \
|
2015-12-06 11:02:17 +02:00
|
|
|
&& apk del TMP \
|
2015-12-06 13:35:17 +02:00
|
|
|
&& rm -rf ghost.zip \
|
|
|
|
/tmp/npm* \
|
|
|
|
/var/cache/apk/*
|
2015-12-06 11:02:17 +02:00
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 2368
|
|
|
|
CMD ["npm", "start"]
|