mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-30 09:16:41 +02:00
36 lines
785 B
Docker
36 lines
785 B
Docker
#
|
|
# Dockerfile for ghost-arm
|
|
#
|
|
|
|
FROM easypi/alpine-arm
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
ENV GHOST_VER 0.7.9
|
|
ENV GHOST_URL https://ghost.org/archives/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 \
|
|
&& 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"]
|