1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/ghost/arm/Dockerfile
2015-12-06 17:02:17 +08:00

33 lines
742 B
Docker

#
# Dockerfile for ghost-arm
#
FROM vimagick/alpine-arm:edge
MAINTAINER kev <noreply@datageek.info>
ENV GHOST_VERSION 0.7.2
ENV GHOST_URL https://github.com/TryGhost/Ghost/archive/$GHOST_VERSION.tar.gz
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost
WORKDIR $GHOST_SRC
VOLUME $GHOST_CONTENT
RUN set -ex \
&& apk add -U bash \
nodejs \
&& apk add -t TMP build-base \
curl \
python \
tar \
&& curl -sSL $GHOST_URL | tar xz --strip 1 \
&& npm install --production \
&& apk del TMP \
&& rm -rf /var/cache/apk/*
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 2368
CMD ["npm", "start"]