mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
36 lines
838 B
Docker
36 lines
838 B
Docker
#
|
|
# Dockerfile for ghost-arm
|
|
#
|
|
|
|
FROM easypi/alpine-arm
|
|
MAINTAINER EasyPi Software Foundation
|
|
|
|
ENV GHOST_VER 0.11.8
|
|
ENV GHOST_URL https://github.com/TryGhost/Ghost/releases/download/$GHOST_VER/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", "--production"]
|