1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/nodebb/Dockerfile
2022-01-17 16:53:36 +08:00

46 lines
1.0 KiB
Docker

#
# Dockerfile for nodebb
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ENV BB_VER=1.19.0
ENV BB_URL=https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
ENV BB_DIR=/opt/nodebb
ENV NODE_ENV=production
WORKDIR $BB_DIR
RUN set -ex \
&& apk add -U bash \
icu \
imagemagick \
nodejs \
npm \
openssl \
&& apk add -t TMP build-base \
curl \
git \
icu-dev \
openssl-dev \
python3 \
tar \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& curl -sSL https://github.com/NodeBB/NodeBB/raw/v1.19.0/install/package.json > package.json \
&& npm install \
&& apk del TMP \
&& rm -rf /tmp/npm* \
/var/cache/apk/*
VOLUME $BB_DIR/config \
$BB_DIR/build \
$BB_DIR/public/uploads
ENV silent=false
ENV daemon=false
EXPOSE 4567
CMD ["./nodebb", "--config", "config/config.json", "start"]