mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-06 03:54:48 +02:00
upgrade nodebb to latest
This commit is contained in:
parent
0bde4f5c9f
commit
ba32d9bb45
@ -5,8 +5,8 @@
|
|||||||
FROM alpine
|
FROM alpine
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 0.9.3
|
ENV BB_VER master
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/$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
|
||||||
|
|
||||||
@ -16,16 +16,17 @@ VOLUME $BB_CONTENT
|
|||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add -U bash \
|
&& apk add -U bash \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
|
krb5-libs \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssl \
|
openssl \
|
||||||
&& apk add -t TMP build-base \
|
&& apk add -t TMP build-base \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
|
krb5-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
python \
|
python \
|
||||||
tar \
|
tar \
|
||||||
&& 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 install connect-redis \
|
&& npm install connect-redis \
|
||||||
&& npm cache clean \
|
&& npm cache clean \
|
||||||
|
@ -30,10 +30,6 @@ $ docker-compose up -d
|
|||||||
$ firefox http://localhost:4567
|
$ firefox http://localhost:4567
|
||||||
```
|
```
|
||||||
|
|
||||||
## todo
|
> Host IP or address of your Redis instance: `redis`
|
||||||
|
|
||||||
- Next release: install
|
|
||||||
- alpine: krb5-libs krb5-dev
|
|
||||||
- debian: libkrb5-3 libkrb5-dev
|
|
||||||
|
|
||||||
[1]: https://nodebb.org/
|
[1]: https://nodebb.org/
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
FROM vimagick/alpine-arm
|
FROM vimagick/alpine-arm
|
||||||
MAINTAINER kev <noreply@datageek.info>
|
MAINTAINER kev <noreply@datageek.info>
|
||||||
|
|
||||||
ENV BB_VER 0.9.3
|
ENV BB_VER master
|
||||||
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/v$BB_VER.tar.gz
|
ENV BB_URL https://github.com/NodeBB/NodeBB/archive/$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
|
||||||
|
|
||||||
@ -16,16 +16,17 @@ VOLUME $BB_CONTENT
|
|||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add -U bash \
|
&& apk add -U bash \
|
||||||
imagemagick \
|
imagemagick \
|
||||||
|
krb5-libs \
|
||||||
nodejs \
|
nodejs \
|
||||||
openssl \
|
openssl \
|
||||||
&& apk add -t TMP build-base \
|
&& apk add -t TMP build-base \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
|
krb5-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
python \
|
python \
|
||||||
tar \
|
tar \
|
||||||
&& 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 \
|
||||||
&& apk del TMP \
|
&& apk del TMP \
|
||||||
|
Loading…
Reference in New Issue
Block a user