1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-30 05:39:15 +02:00
dockerfiles/ghost/arm/Dockerfile

37 lines
853 B
Docker
Raw Normal View History

2015-12-06 17:02:17 +08:00
#
# Dockerfile for ghost-arm
#
2016-04-18 16:48:57 +08:00
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
2015-12-06 17:02:17 +08:00
2017-05-18 14:06:57 +08:00
ENV GHOST_VER 0.11.9
2017-05-01 21:39:58 +08:00
ENV GHOST_URL https://github.com/TryGhost/Ghost/releases/download/$GHOST_VER/Ghost-$GHOST_VER.zip
2015-12-06 17:02:17 +08:00
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost
2015-12-06 17:29:04 +08:00
WORKDIR $GHOST_SOURCE
2015-12-06 17:02:17 +08:00
VOLUME $GHOST_CONTENT
RUN set -ex \
&& apk add -U bash \
2016-11-04 23:55:18 +08:00
nodejs \
2017-05-25 17:40:28 +08:00
nodejs-npm \
2015-12-06 17:02:17 +08:00
&& apk add -t TMP build-base \
curl \
python \
2015-12-06 19:35:17 +08:00
&& curl -sSL $GHOST_URL -o ghost.zip \
&& unzip ghost.zip \
2015-12-06 17:02:17 +08:00
&& npm install --production \
2015-12-06 19:35:17 +08:00
&& npm cache clean \
2015-12-06 17:02:17 +08:00
&& apk del TMP \
2015-12-06 19:35:17 +08:00
&& rm -rf ghost.zip \
/tmp/npm* \
/var/cache/apk/*
2015-12-06 17:02:17 +08:00
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 2368
2017-05-25 17:27:46 +08:00
CMD ["npm", "start"]