1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-12-06 19:35:17 +08:00
parent bb74063cf4
commit 486d097f93

View File

@ -6,7 +6,7 @@ FROM vimagick/alpine-arm:edge
MAINTAINER kev <noreply@datageek.info>
ENV GHOST_VER 0.7.2
ENV GHOST_URL https://github.com/TryGhost/Ghost/archive/$GHOST_VER.tar.gz
ENV GHOST_URL https://ghost.org/archives/ghost-$GHOST_VER.zip
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost
@ -19,11 +19,14 @@ RUN set -ex \
&& apk add -t TMP build-base \
curl \
python \
tar \
&& curl -sSL $GHOST_URL | tar xz --strip 1 \
&& curl -sSL $GHOST_URL -o ghost.zip \
&& unzip ghost.zip \
&& npm install --production \
&& npm cache clean \
&& apk del TMP \
&& rm -rf /var/cache/apk/*
&& rm -rf ghost.zip \
/tmp/npm* \
/var/cache/apk/*
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]