1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-04 10:34:49 +02:00
dockerfiles/ghost/arm/Dockerfile
2017-05-25 17:40:28 +08:00

37 lines
853 B
Docker

#
# Dockerfile for ghost-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
ENV GHOST_VER 0.11.9
ENV GHOST_URL https://github.com/TryGhost/Ghost/releases/download/$GHOST_VER/Ghost-$GHOST_VER.zip
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost
WORKDIR $GHOST_SOURCE
VOLUME $GHOST_CONTENT
RUN set -ex \
&& apk add -U bash \
nodejs \
nodejs-npm \
&& apk add -t TMP build-base \
curl \
python \
&& curl -sSL $GHOST_URL -o ghost.zip \
&& unzip ghost.zip \
&& npm install --production \
&& npm cache clean \
&& apk del TMP \
&& rm -rf ghost.zip \
/tmp/npm* \
/var/cache/apk/*
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 2368
CMD ["npm", "start"]