2016-01-16 06:07:47 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for nodebb
|
|
|
|
#
|
|
|
|
|
2022-01-16 05:36:41 +02:00
|
|
|
FROM debian:bullseye
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-01-16 06:07:47 +02:00
|
|
|
|
2022-07-13 05:16:07 +02:00
|
|
|
ARG BB_VER=2.2.4
|
|
|
|
ARG BB_URL=https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
|
|
|
|
2019-10-01 10:17:49 +02:00
|
|
|
ENV BB_SOURCE=/usr/src/nodebb
|
|
|
|
ENV BB_CONTENT=/var/lib/nodebb
|
2016-01-16 06:07:47 +02:00
|
|
|
|
|
|
|
WORKDIR $BB_SOURCE
|
|
|
|
VOLUME $BB_CONTENT
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y build-essential \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
imagemagick \
|
|
|
|
libssl1.0.0 \
|
|
|
|
libssl-dev \
|
|
|
|
python \
|
2019-10-01 10:17:49 +02:00
|
|
|
&& curl -sSL https://deb.nodesource.com/setup_10.x | bash - \
|
2016-01-16 06:07:47 +02:00
|
|
|
&& apt-get install -y nodejs \
|
|
|
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
|
|
|
&& npm install --production \
|
|
|
|
&& npm cache clean \
|
|
|
|
&& apt-get remove -y build-essential \
|
|
|
|
curl \
|
|
|
|
git \
|
|
|
|
libssl-dev \
|
|
|
|
python \
|
|
|
|
&& rm -rf /tmp/npm* \
|
|
|
|
/var/cache/apt/*
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
EXPOSE 4567
|
|
|
|
CMD ["npm", "start"]
|