mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-29 18:21:24 +00:00
upgrade nodebb to 1.0.2
This commit is contained in:
parent
863c4bddf9
commit
76a713cd98
@ -5,7 +5,7 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 1.0.0
|
ENV BB_VER 1.0.2
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||||
ENV BB_SOURCE /usr/src/nodebb
|
ENV BB_SOURCE /usr/src/nodebb
|
||||||
ENV BB_CONTENT /var/lib/nodebb
|
ENV BB_CONTENT /var/lib/nodebb
|
||||||
@ -28,7 +28,6 @@ RUN set -ex \
|
|||||||
tar \
|
tar \
|
||||||
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
||||||
&& npm install --production \
|
&& npm install --production \
|
||||||
&& npm install connect-redis \
|
|
||||||
&& npm cache clean \
|
&& npm cache clean \
|
||||||
&& apk del TMP \
|
&& apk del TMP \
|
||||||
&& rm -rf /tmp/npm* \
|
&& rm -rf /tmp/npm* \
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
FROM debian
|
FROM debian
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 0.9.3
|
ENV BB_VER 1.0.2
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||||
ENV BB_SOURCE /usr/src/nodebb
|
ENV BB_SOURCE /usr/src/nodebb
|
||||||
ENV BB_CONTENT /var/lib/nodebb
|
ENV BB_CONTENT /var/lib/nodebb
|
||||||
@ -25,7 +25,6 @@ RUN set -ex \
|
|||||||
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
|
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
||||||
&& sed -i '/"bufferutil": {/,/},/d; /"utf-8-validate": {/,/},/d' npm-shrinkwrap.json \
|
|
||||||
&& npm install --production \
|
&& npm install --production \
|
||||||
&& npm cache clean \
|
&& npm cache clean \
|
||||||
&& apt-get remove -y build-essential \
|
&& apt-get remove -y build-essential \
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
FROM vimagick/alpine-arm
|
FROM vimagick/alpine-arm
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 1.0.0
|
ENV BB_VER 1.0.2
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||||
ENV BB_SOURCE /usr/src/nodebb
|
ENV BB_SOURCE /usr/src/nodebb
|
||||||
ENV BB_CONTENT /var/lib/nodebb
|
ENV BB_CONTENT /var/lib/nodebb
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
FROM resin/rpi-raspbian
|
FROM resin/rpi-raspbian
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 0.9.3
|
ENV BB_VER 1.0.2
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
||||||
ENV BB_SOURCE /usr/src/nodebb
|
ENV BB_SOURCE /usr/src/nodebb
|
||||||
ENV BB_CONTENT /var/lib/nodebb
|
ENV BB_CONTENT /var/lib/nodebb
|
||||||
@ -25,7 +25,6 @@ RUN set -ex \
|
|||||||
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
|
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
&& curl -sSL $BB_URL | tar xz --strip 1 \
|
||||||
&& sed -i '/"bufferutil": {/,/},/d; /"utf-8-validate": {/,/},/d' npm-shrinkwrap.json \
|
|
||||||
&& npm install --production \
|
&& npm install --production \
|
||||||
&& npm cache clean \
|
&& npm cache clean \
|
||||||
&& apt-get remove -y build-essential \
|
&& apt-get remove -y build-essential \
|
||||||
|
@ -14,8 +14,6 @@ if [[ "$*" == npm*start* ]]; then
|
|||||||
|
|
||||||
if [ -e "$BB_CONTENT/config.json" ]; then
|
if [ -e "$BB_CONTENT/config.json" ]; then
|
||||||
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
|
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
|
||||||
[ -d "$BB_SOURCE/node_modules/redis" ] || npm install redis
|
|
||||||
[ -d "$BB_SOURCE/node_modules/connect-redis" ] || npm install connect-redis
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
@ -14,8 +14,6 @@ if [[ "$*" == npm*start* ]]; then
|
|||||||
|
|
||||||
if [ -e "$BB_CONTENT/config.json" ]; then
|
if [ -e "$BB_CONTENT/config.json" ]; then
|
||||||
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
|
ln -sf "$BB_CONTENT/config.json" "$BB_SOURCE/config.json"
|
||||||
[ -d "$BB_SOURCE/node_modules/redis" ] || npm install redis
|
|
||||||
[ -d "$BB_SOURCE/node_modules/connect-redis" ] || npm install connect-redis
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user