1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02:00

upgrade nodebb to 1.0.2

This commit is contained in:
kev 2016-04-02 07:50:15 +08:00
parent 863c4bddf9
commit 76a713cd98
6 changed files with 4 additions and 11 deletions

View File

@ -5,7 +5,7 @@
FROM alpine
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_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb
@ -28,7 +28,6 @@ RUN set -ex \
tar \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& npm install --production \
&& npm install connect-redis \
&& npm cache clean \
&& apk del TMP \
&& rm -rf /tmp/npm* \

View File

@ -5,7 +5,7 @@
FROM debian
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_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb
@ -25,7 +25,6 @@ RUN set -ex \
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
&& apt-get install -y nodejs \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& sed -i '/"bufferutil": {/,/},/d; /"utf-8-validate": {/,/},/d' npm-shrinkwrap.json \
&& npm install --production \
&& npm cache clean \
&& apt-get remove -y build-essential \

View File

@ -5,7 +5,7 @@
FROM vimagick/alpine-arm
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_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb

View File

@ -5,7 +5,7 @@
FROM resin/rpi-raspbian
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_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb
@ -25,7 +25,6 @@ RUN set -ex \
&& curl -sSL https://deb.nodesource.com/setup_4.x | bash - \
&& apt-get install -y nodejs \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& sed -i '/"bufferutil": {/,/},/d; /"utf-8-validate": {/,/},/d' npm-shrinkwrap.json \
&& npm install --production \
&& npm cache clean \
&& apt-get remove -y build-essential \

View File

@ -14,8 +14,6 @@ if [[ "$*" == npm*start* ]]; then
if [ -e "$BB_CONTENT/config.json" ]; then
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
exec "$@"

View File

@ -14,8 +14,6 @@ if [[ "$*" == npm*start* ]]; then
if [ -e "$BB_CONTENT/config.json" ]; then
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
exec "$@"