Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.

Commit 2263e9b

Browse files
authored
Merge pull request #1 from linuxserver/initial
Go Live
2 parents 1aa03c3 + 469b69d commit 2263e9b

File tree

11 files changed

+1760
-128
lines changed

11 files changed

+1760
-128
lines changed

Dockerfile

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,52 @@
1-
FROM lsiobase/ubuntu:xenial
1+
FROM lsiobase/ubuntu:bionic
22

33
# set version label
44
ARG BUILD_DATE
55
ARG VERSION
6+
ARG DILLINGER_VERSION
67
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
7-
LABEL maintainer="sparklyballs"
8-
9-
# environment settings
10-
ARG DEBIAN_FRONTEND="noninteractive"
11-
ENV NODE_ENV=production
12-
13-
# build packages variable
14-
ARG BUILD_DEPENDENCIES="\
15-
apt-transport-https \
16-
lsb-release"
8+
LABEL maintainer="thelamer"
179

1810
RUN \
19-
echo "**** install build packages ****" && \
11+
echo "**** install build env ****" && \
2012
apt-get update && \
2113
apt-get install -y \
22-
${BUILD_DEPENDENCIES} && \
23-
echo "**** install runtime packages ****" && \
24-
curl -sL http://nsolid-deb.nodesource.com/nsolid_setup_2.x | bash - && \
25-
apt-get install --no-install-recommends -y \
26-
bzip2 \
27-
git \
28-
libfontconfig \
29-
nsolid-boron \
30-
python-software-properties && \
14+
git \
15+
gnupg \
16+
libfontconfig && \
17+
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
18+
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
19+
> /etc/apt/sources.list.d/nodesource.list && \
20+
apt-get update && \
21+
apt-get install -y \
22+
nodejs && \
3123
echo "**** install dillinger ****" && \
3224
mkdir -p \
3325
/app/dillinger && \
26+
if [ -z ${DILLINGER_VERSION+x} ]; then \
27+
DILLINGER_VERSION=$(git ls-remote --tags https://github.com/joemccann/dillinger.git \
28+
| grep -v '{}' | tail -n 1 | awk -F / '{print $3}'); \
29+
fi && \
3430
curl -o \
3531
/tmp/dillinger.tar.gz -L \
36-
https://github.com/joemccann/dillinger/archive/master.tar.gz && \
37-
tar xf \
32+
"https://github.com/joemccann/dillinger/archive/${DILLINGER_VERSION}.tar.gz" && \
33+
tar -xzf \
3834
/tmp/dillinger.tar.gz -C \
39-
/app/dillinger --strip-components=1 && \
40-
cd /app/dillinger && \
41-
npm install && \
42-
echo "**** cleanup ****" && \
43-
apt-get purge -y --auto-remove \
44-
${BUILD_DEPENDENCIES} && \
45-
npm cache clean && \
35+
/app/dillinger/ --strip-components=1 && \
36+
echo "**** install node modules ****" && \
37+
npm config set unsafe-perm true && \
38+
npm install --production \
39+
--prefix /app/dillinger && \
40+
echo "**** clean up ****" && \
4641
rm -rf \
47-
/tmp/* \
48-
/var/lib/apt/lists/* \
49-
/var/tmp/*
42+
/root \
43+
/tmp/* \
44+
/var/lib/apt/lists/* \
45+
/var/tmp/* && \
46+
mkdir -p \
47+
/root
5048

51-
# add local files
49+
# add local files
5250
COPY root/ /
5351

5452
# ports and volumes

Dockerfile.aarch64

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM lsiobase/ubuntu:arm64v8-bionic
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG DILLINGER_VERSION
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="thelamer"
9+
10+
# environment settings
11+
ARG DEBIAN_FRONTEND="noninteractive"
12+
13+
RUN \
14+
echo "**** install packages ****" && \
15+
apt-get update && \
16+
apt-get install -y \
17+
git \
18+
gnupg \
19+
libfontconfig \
20+
libicu60 && \
21+
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
22+
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
23+
> /etc/apt/sources.list.d/nodesource.list && \
24+
apt-get update && \
25+
apt-get install -y \
26+
nodejs && \
27+
echo "**** install dillinger ****" && \
28+
mkdir -p \
29+
/app/dillinger && \
30+
if [ -z ${DILLINGER_VERSION+x} ]; then \
31+
DILLINGER_VERSION=$(git ls-remote --tags https://github.com/joemccann/dillinger.git \
32+
| grep -v '{}' | tail -n 1 | awk -F / '{print $3}'); \
33+
fi && \
34+
curl -o \
35+
/tmp/dillinger.tar.gz -L \
36+
"https://github.com/joemccann/dillinger/archive/${DILLINGER_VERSION}.tar.gz" && \
37+
tar -xzf \
38+
/tmp/dillinger.tar.gz -C \
39+
/app/dillinger/ --strip-components=1 && \
40+
echo "**** install pre-built phantonjs ****" && \
41+
curl -o \
42+
/tmp/phantom.tar.gz \
43+
"https://lsio-ci.ams3.digitaloceanspaces.com/phantomjs/phantomjs-aarch64.tar.gz" && \
44+
tar -xf \
45+
/tmp/phantom.tar.gz -C / && \
46+
echo "**** install node modules ****" && \
47+
sed -i \
48+
'/phantomjs-prebuilt/d' \
49+
/app/dillinger/package.json && \
50+
npm config set unsafe-perm true && \
51+
npm install --production \
52+
--prefix /app/dillinger && \
53+
echo "**** clean up ****" && \
54+
rm -rf \
55+
/root \
56+
/tmp/* \
57+
/var/lib/apt/lists/* \
58+
/var/tmp/* && \
59+
mkdir -p \
60+
/root
61+
62+
# add local files
63+
COPY root/ /
64+
65+
# ports and volumes
66+
EXPOSE 8080
67+
VOLUME /config

Dockerfile.armhf

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
FROM lsiobase/ubuntu:arm32v7-bionic
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG DILLINGER_VERSION
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="thelamer"
9+
10+
# environment settings
11+
ARG DEBIAN_FRONTEND="noninteractive"
12+
13+
RUN \
14+
echo "**** install packages ****" && \
15+
apt-get update && \
16+
apt-get install -y \
17+
git \
18+
gnupg \
19+
libfontconfig \
20+
libicu60 && \
21+
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
22+
echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
23+
> /etc/apt/sources.list.d/nodesource.list && \
24+
apt-get update && \
25+
apt-get install -y \
26+
nodejs && \
27+
echo "**** install dillinger ****" && \
28+
mkdir -p \
29+
/app/dillinger && \
30+
if [ -z ${DILLINGER_VERSION+x} ]; then \
31+
DILLINGER_VERSION=$(git ls-remote --tags https://github.com/joemccann/dillinger.git \
32+
| grep -v '{}' | tail -n 1 | awk -F / '{print $3}'); \
33+
fi && \
34+
curl -o \
35+
/tmp/dillinger.tar.gz -L \
36+
"https://github.com/joemccann/dillinger/archive/${DILLINGER_VERSION}.tar.gz" && \
37+
tar -xzf \
38+
/tmp/dillinger.tar.gz -C \
39+
/app/dillinger/ --strip-components=1 && \
40+
echo "**** install pre-built phantonjs ****" && \
41+
curl -o \
42+
/tmp/phantom.tar.gz \
43+
"https://lsio-ci.ams3.digitaloceanspaces.com/phantomjs/phantomjs-armhf.tar.gz" && \
44+
tar -xf \
45+
/tmp/phantom.tar.gz -C / && \
46+
echo "**** install node modules ****" && \
47+
sed -i \
48+
'/phantomjs-prebuilt/d' \
49+
/app/dillinger/package.json && \
50+
npm config set unsafe-perm true && \
51+
npm install --production \
52+
--prefix /app/dillinger && \
53+
echo "**** clean up ****" && \
54+
rm -rf \
55+
/root \
56+
/tmp/* \
57+
/var/lib/apt/lists/* \
58+
/var/tmp/* && \
59+
mkdir -p \
60+
/root
61+
62+
# add local files
63+
COPY root/ /
64+
65+
# ports and volumes
66+
EXPOSE 8080
67+
VOLUME /config

0 commit comments

Comments
 (0)