1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/nodebb/arm/Dockerfile
2019-10-01 16:17:49 +08:00

41 lines
940 B
Docker

#
# Dockerfile for nodebb-arm
#
FROM arm32v7/alpine:3
MAINTAINER EasyPi Software Foundation
ENV BB_VER=1.12.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
WORKDIR $BB_SOURCE
VOLUME $BB_CONTENT
RUN set -ex \
&& apk add -U bash \
icu \
imagemagick \
nodejs \
nodejs-npm \
openssl \
&& apk add -t TMP build-base \
curl \
git \
icu-dev \
openssl-dev \
python \
tar \
&& curl -sSL $BB_URL | tar xz --strip 1 \
&& ./nodebb setup \
&& apk del TMP \
&& rm -rf /tmp/npm* \
/var/cache/apk/*
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 4567
CMD ["./nodebb", "start"]