1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

upgrade nodebb to latest

This commit is contained in:
kev 2016-01-16 12:27:53 +08:00
parent 0bde4f5c9f
commit ba32d9bb45
3 changed files with 9 additions and 11 deletions

View File

@ -5,8 +5,8 @@
FROM alpine
MAINTAINER kev <noreply@datageek.info>
ENV BB_VER 0.9.3
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
ENV BB_VER master
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/$BB_VER.tar.gz
ENV BB_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb
@ -16,16 +16,17 @@ VOLUME $BB_CONTENT
RUN set -ex \
&& apk add -U bash \
imagemagick \
krb5-libs \
nodejs \
openssl \
&& apk add -t TMP build-base \
curl \
git \
krb5-dev \
openssl-dev \
python \
tar \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& sed -i '/"bufferutil": {/,/},/d; /"utf-8-validate": {/,/},/d' npm-shrinkwrap.json \
&& npm install --production \
&& npm install connect-redis \
&& npm cache clean \

View File

@ -30,10 +30,6 @@ $ docker-compose up -d
$ firefox http://localhost:4567
```
## todo
- Next release: install
- alpine: krb5-libs krb5-dev
- debian: libkrb5-3 libkrb5-dev
> Host IP or address of your Redis instance: `redis`
[1]: https://nodebb.org/

View File

@ -5,8 +5,8 @@
FROM vimagick/alpine-arm
MAINTAINER kev <noreply@datageek.info>
ENV BB_VER 0.9.3
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
ENV BB_VER master
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/$BB_VER.tar.gz
ENV BB_SOURCE /usr/src/nodebb
ENV BB_CONTENT /var/lib/nodebb
@ -16,16 +16,17 @@ VOLUME $BB_CONTENT
RUN set -ex \
&& apk add -U bash \
imagemagick \
krb5-libs \
nodejs \
openssl \
&& apk add -t TMP build-base \
curl \
git \
krb5-dev \
openssl-dev \
python \
tar \
&& 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 \
&& apk del TMP \