2016-01-16 01:19:42 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for nodebb-arm
|
|
|
|
#
|
|
|
|
|
2016-04-20 15:44:16 +02:00
|
|
|
FROM easypi/alpine-arm
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-01-16 01:19:42 +02:00
|
|
|
|
2018-07-22 13:47:41 +02:00
|
|
|
ENV BB_VER 1.10.1
|
2016-03-06 04:56:36 +02:00
|
|
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
2016-01-16 01:19:42 +02:00
|
|
|
ENV BB_SOURCE /usr/src/nodebb
|
|
|
|
ENV BB_CONTENT /var/lib/nodebb
|
|
|
|
|
|
|
|
WORKDIR $BB_SOURCE
|
|
|
|
VOLUME $BB_CONTENT
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk add -U bash \
|
2018-08-18 23:48:40 +02:00
|
|
|
icu \
|
2016-01-16 01:19:42 +02:00
|
|
|
imagemagick \
|
|
|
|
nodejs \
|
2017-09-16 05:52:46 +02:00
|
|
|
nodejs-npm \
|
2016-01-16 01:19:42 +02:00
|
|
|
openssl \
|
|
|
|
&& apk add -t TMP build-base \
|
|
|
|
curl \
|
|
|
|
git \
|
2018-08-18 23:48:40 +02:00
|
|
|
icu-dev \
|
2016-01-16 01:19:42 +02:00
|
|
|
openssl-dev \
|
|
|
|
python \
|
|
|
|
tar \
|
|
|
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
2018-08-18 23:48:40 +02:00
|
|
|
&& ./nodebb setup \
|
2016-01-16 01:19:42 +02:00
|
|
|
&& apk del TMP \
|
|
|
|
&& rm -rf /tmp/npm* \
|
|
|
|
/var/cache/apk/*
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 4567
|
2018-08-25 05:34:33 +02:00
|
|
|
CMD ["./nodebb", "start"]
|