1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +00:00
dockerfiles/nodebb/Dockerfile

41 lines
928 B
Docker
Raw Normal View History

2016-01-15 23:19:42 +00:00
#
# Dockerfile for nodebb
#
2021-04-22 02:55:12 +00:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2016-01-15 23:19:42 +00:00
2021-04-22 02:55:12 +00:00
ENV BB_VER=1.17.0
2019-10-01 08:17:49 +00:00
ENV BB_URL=https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
ENV BB_SOURCE=/usr/src/nodebb
ENV BB_CONTENT=/var/lib/nodebb
2016-01-15 23:19:42 +00:00
WORKDIR $BB_SOURCE
VOLUME $BB_CONTENT
RUN set -ex \
&& apk add -U bash \
2018-08-18 21:48:40 +00:00
icu \
2016-01-15 23:19:42 +00:00
imagemagick \
nodejs \
2017-09-16 03:52:46 +00:00
nodejs-npm \
2016-01-15 23:19:42 +00:00
openssl \
&& apk add -t TMP build-base \
curl \
git \
2018-08-18 21:48:40 +00:00
icu-dev \
2016-01-15 23:19:42 +00:00
openssl-dev \
python \
tar \
&& curl -sSL $BB_URL | tar xz --strip 1 \
2018-08-18 21:48:40 +00:00
&& ./nodebb setup \
2016-01-15 23:19:42 +00: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 03:34:33 +00:00
CMD ["./nodebb", "start"]