1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-07-08 11:01:34 +00:00
dockerfiles/ghost/arm/Dockerfile

36 lines
785 B
Docker
Raw Normal View History

2015-12-06 09:02:17 +00:00
#
# Dockerfile for ghost-arm
#
2016-04-18 08:48:57 +00:00
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
2015-12-06 09:02:17 +00:00
2016-04-18 08:48:57 +00:00
ENV GHOST_VER 0.7.9
2015-12-06 11:35:17 +00:00
ENV GHOST_URL https://ghost.org/archives/ghost-$GHOST_VER.zip
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 \
2015-12-06 11:35:17 +00:00
&& curl -sSL $GHOST_URL -o ghost.zip \
&& unzip ghost.zip \
2015-12-06 09:02:17 +00:00
&& npm install --production \
2015-12-06 11:35:17 +00:00
&& npm cache clean \
2015-12-06 09:02:17 +00:00
&& apk del TMP \
2015-12-06 11:35:17 +00:00
&& rm -rf ghost.zip \
/tmp/npm* \
/var/cache/apk/*
2015-12-06 09:02:17 +00:00
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 2368
CMD ["npm", "start"]