2016-01-16 01:19:42 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for nodebb
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
2016-05-01 03:06:20 +02:00
|
|
|
MAINTAINER kev <noreply@easypi.info>
|
2016-01-16 01:19:42 +02:00
|
|
|
|
2016-12-22 19:05:41 +02:00
|
|
|
ENV BB_VER 1.4.2
|
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 \
|
|
|
|
imagemagick \
|
2016-01-16 06:27:53 +02:00
|
|
|
krb5-libs \
|
2016-01-16 01:19:42 +02:00
|
|
|
nodejs \
|
|
|
|
openssl \
|
|
|
|
&& apk add -t TMP build-base \
|
|
|
|
curl \
|
|
|
|
git \
|
2016-01-16 06:27:53 +02:00
|
|
|
krb5-dev \
|
2016-01-16 01:19:42 +02:00
|
|
|
openssl-dev \
|
|
|
|
python \
|
|
|
|
tar \
|
|
|
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
|
|
|
&& npm install --production \
|
|
|
|
&& npm cache clean \
|
|
|
|
&& apk del TMP \
|
|
|
|
&& rm -rf /tmp/npm* \
|
|
|
|
/var/cache/apk/*
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 4567
|
|
|
|
CMD ["npm", "start"]
|