mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update nodebb
This commit is contained in:
parent
0cd56c4d64
commit
83e85d8cb0
@ -5,10 +5,9 @@
|
||||
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
|
||||
ARG BB_VER=2.2.4
|
||||
ARG BB_URL=https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||
ARG BB_DIR=/opt/nodebb
|
||||
|
||||
WORKDIR $BB_DIR
|
||||
|
||||
@ -27,8 +26,8 @@ RUN set -ex \
|
||||
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 \
|
||||
&& curl -sSL https://github.com/NodeBB/NodeBB/raw/v$BB_VER/install/package.json > package.json \
|
||||
&& npm install --production \
|
||||
&& apk del TMP \
|
||||
&& rm -rf /tmp/npm* \
|
||||
/var/cache/apk/*
|
||||
@ -37,6 +36,7 @@ VOLUME $BB_DIR/config \
|
||||
$BB_DIR/build \
|
||||
$BB_DIR/public/uploads
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV silent=false
|
||||
ENV daemon=false
|
||||
|
||||
|
@ -5,8 +5,9 @@
|
||||
FROM debian:bullseye
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ENV BB_VER=1.19.0
|
||||
ENV BB_URL=https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||
ARG BB_VER=2.2.4
|
||||
ARG 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user