1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-07-19 17:35:49 +00:00
dockerfiles/ghost/arm/Dockerfile

33 lines
737 B
Docker
Raw Normal View History

2015-12-06 09:02:17 +00:00
#
# Dockerfile for ghost-arm
#
FROM vimagick/alpine-arm:edge
MAINTAINER kev <noreply@datageek.info>
2015-12-06 09:29:04 +00:00
ENV GHOST_VER 0.7.2
ENV GHOST_URL https://github.com/TryGhost/Ghost/archive/$GHOST_VER.tar.gz
2015-12-06 09:02:17 +00:00
ENV GHOST_SOURCE /usr/src/ghost
ENV GHOST_CONTENT /var/lib/ghost
2015-12-06 09:29:04 +00:00
WORKDIR $GHOST_SOURCE
2015-12-06 09:02:17 +00:00
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"]