Skip to content

Commit 7c2fa75

Browse files
committed
adding initial version
1 parent 199f613 commit 7c2fa75

13 files changed

+1766
-164
lines changed

Diff for: Dockerfile

+15-18
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
FROM lsiobase/alpine:3.8
1+
FROM lsiobase/alpine:3.9
22

33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6+
ARG RANETO_RELEASE
67
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
7-
LABEL maintainer="chbmb"
8-
9-
# environment settings
10-
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
8+
LABEL maintainer="thelamer"
119

1210
RUN \
1311
echo "**** install build packages ****" && \
@@ -23,29 +21,28 @@ RUN \
2321
echo "**** install runtime packages ****" && \
2422
apk add --no-cache \
2523
nodejs && \
26-
echo "**** update npm and install node dependencies ****" && \
27-
npm install -g \
28-
gulp-cli \
29-
npm@latest \
30-
pm2 && \
3124
echo "**** install raneto ****" && \
3225
mkdir -p \
3326
/app/raneto && \
34-
RANETO_VER=$(curl -sX GET "https://api.github.com/repos/gilbitron/Raneto/releases/latest" \
35-
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
27+
if [ -z ${RANETO_RELEASE+x} ]; then \
28+
RANETO_RELEASE=$(curl -sX GET "https://api.github.com/repos/gilbitron/Raneto/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
3631
curl -o \
3732
/tmp/raneto-src.tar.gz -L \
38-
"https://github.com/gilbitron/Raneto/archive/${RANETO_VER}.tar.gz" && \
33+
"https://github.com/gilbitron/Raneto/archive/${RANETO_RELEASE}.tar.gz" && \
3934
tar xf \
4035
/tmp/raneto-src.tar.gz -C \
4136
/app/raneto --strip-components=1 && \
42-
cd /app/raneto && \
4337
echo "**** install raneto node dev modules and build ****" && \
44-
npm install && \
45-
gulp && \
38+
cd /app/raneto && \
39+
npm config set unsafe-perm true && \
40+
npm install --production && \
41+
npm install gulp && \
42+
node node_modules/gulp/bin/gulp.js && \
43+
npm uninstall gulp && \
44+
echo "**** cleanup ****" && \
4645
echo "**** cleanup ****" && \
47-
apk del --purge \
48-
build-dependencies && \
4946
rm -rf \
5047
/root \
5148
/tmp/* && \

Diff for: Dockerfile.aarch64

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM lsiobase/alpine:arm64v8-3.9
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG RANETO_RELEASE
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="thelamer"
9+
10+
RUN \
11+
echo "**** install build packages ****" && \
12+
apk add --no-cache --virtual=build-dependencies \
13+
curl \
14+
g++ \
15+
gcc \
16+
libsass-dev \
17+
make \
18+
nodejs-npm \
19+
python \
20+
tar && \
21+
echo "**** install runtime packages ****" && \
22+
apk add --no-cache \
23+
nodejs && \
24+
echo "**** install raneto ****" && \
25+
mkdir -p \
26+
/app/raneto && \
27+
if [ -z ${RANETO_RELEASE+x} ]; then \
28+
RANETO_RELEASE=$(curl -sX GET "https://api.github.com/repos/gilbitron/Raneto/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
31+
curl -o \
32+
/tmp/raneto-src.tar.gz -L \
33+
"https://github.com/gilbitron/Raneto/archive/${RANETO_RELEASE}.tar.gz" && \
34+
tar xf \
35+
/tmp/raneto-src.tar.gz -C \
36+
/app/raneto --strip-components=1 && \
37+
echo "**** install raneto node dev modules and build ****" && \
38+
cd /app/raneto && \
39+
npm config set unsafe-perm true && \
40+
npm install --production && \
41+
npm install gulp && \
42+
node node_modules/gulp/bin/gulp.js && \
43+
npm uninstall gulp && \
44+
echo "**** cleanup ****" && \
45+
rm -rf \
46+
/root \
47+
/tmp/* && \
48+
mkdir -p \
49+
/root
50+
51+
# copy local files
52+
COPY root/ /
53+
54+
# ports and volumes
55+
EXPOSE 3000
56+
VOLUME /config

Diff for: Dockerfile.armhf

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
FROM lsiobase/alpine:arm32v7-3.9
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG RANETO_RELEASE
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="thelamer"
9+
10+
RUN \
11+
echo "**** install build packages ****" && \
12+
apk add --no-cache --virtual=build-dependencies \
13+
curl \
14+
g++ \
15+
gcc \
16+
libsass-dev \
17+
make \
18+
nodejs-npm \
19+
python \
20+
tar && \
21+
echo "**** install runtime packages ****" && \
22+
apk add --no-cache \
23+
nodejs && \
24+
echo "**** install raneto ****" && \
25+
mkdir -p \
26+
/app/raneto && \
27+
if [ -z ${RANETO_RELEASE+x} ]; then \
28+
RANETO_RELEASE=$(curl -sX GET "https://api.github.com/repos/gilbitron/Raneto/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
31+
curl -o \
32+
/tmp/raneto-src.tar.gz -L \
33+
"https://github.com/gilbitron/Raneto/archive/${RANETO_RELEASE}.tar.gz" && \
34+
tar xf \
35+
/tmp/raneto-src.tar.gz -C \
36+
/app/raneto --strip-components=1 && \
37+
echo "**** install raneto node dev modules and build ****" && \
38+
cd /app/raneto && \
39+
npm config set unsafe-perm true && \
40+
npm install --production && \
41+
npm install gulp && \
42+
node node_modules/gulp/bin/gulp.js && \
43+
npm uninstall gulp && \
44+
echo "**** cleanup ****" && \
45+
rm -rf \
46+
/root \
47+
/tmp/* && \
48+
mkdir -p \
49+
/root
50+
51+
# copy local files
52+
COPY root/ /
53+
54+
# ports and volumes
55+
EXPOSE 3000
56+
VOLUME /config

0 commit comments

Comments
 (0)