Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

Commit 9ba61d3

Browse files
committed
adding base files version for alpine containers
1 parent 3ed5bbf commit 9ba61d3

File tree

7 files changed

+478
-368
lines changed

7 files changed

+478
-368
lines changed

Dockerfile

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/ubuntu:bionic
1+
FROM lsiobase/alpine:3.9
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,21 +7,36 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
77
LABEL maintainer="thelamer"
88
ARG NPM_CONFIG_UNSAFE_PERM=true
99

10+
# add local files
11+
COPY /root /
12+
1013
RUN \
1114
echo "**** install build packages ****" && \
12-
apt-get update && \
13-
apt-get install -y \
15+
apk add --no-cache \
1416
g++ \
1517
gcc \
1618
git \
19+
libgcc \
20+
libxml2-dev \
1721
make \
18-
python && \
22+
nodejs \
23+
openssl-dev \
24+
python \
25+
tmux
26+
RUN \
1927
echo "**** Compile Cloud9 from source ****" && \
2028
git clone --depth 1 \
2129
https://github.com/c9/core.git c9sdk && \
2230
cd c9sdk && \
31+
sed -i \
32+
's/node-pty-prebuilt/node-pty/g' \
33+
plugins/node_modules/vfs-local/localfs.js && \
2334
mkdir -p /c9bins && \
24-
HOME=/c9bins scripts/install-sdk.sh && \
35+
sed -i \
36+
'/$URL/c\bash /install.sh' \
37+
scripts/install-sdk.sh && \
38+
HOME=/c9bins scripts/install-sdk.sh
39+
RUN \
2540
echo "**** Restructure files for copy ****" && \
2641
mkdir -p \
2742
/buildout && \

Dockerfile.aarch64

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/ubuntu:arm64v8-bionic
1+
FROM lsiobase/alpine:arm64v8-3.9
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,21 +7,36 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
77
LABEL maintainer="thelamer"
88
ARG NPM_CONFIG_UNSAFE_PERM=true
99

10+
# add local files
11+
COPY /root /
12+
1013
RUN \
1114
echo "**** install build packages ****" && \
12-
apt-get update && \
13-
apt-get install -y \
15+
apk add --no-cache \
1416
g++ \
1517
gcc \
1618
git \
19+
libgcc \
20+
libxml2-dev \
1721
make \
18-
python && \
22+
nodejs \
23+
openssl-dev \
24+
python \
25+
tmux
26+
RUN \
1927
echo "**** Compile Cloud9 from source ****" && \
2028
git clone --depth 1 \
2129
https://github.com/c9/core.git c9sdk && \
2230
cd c9sdk && \
31+
sed -i \
32+
's/node-pty-prebuilt/node-pty/g' \
33+
plugins/node_modules/vfs-local/localfs.js && \
2334
mkdir -p /c9bins && \
24-
HOME=/c9bins scripts/install-sdk.sh && \
35+
sed -i \
36+
'/$URL/c\bash /install.sh' \
37+
scripts/install-sdk.sh && \
38+
HOME=/c9bins scripts/install-sdk.sh
39+
RUN \
2540
echo "**** Restructure files for copy ****" && \
2641
mkdir -p \
2742
/buildout && \

Dockerfile.armhf

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lsiobase/ubuntu:arm32v7-bionic
1+
FROM lsiobase/alpine:arm32v7-3.9
22

33
# set version label
44
ARG BUILD_DATE
@@ -7,21 +7,36 @@ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DA
77
LABEL maintainer="thelamer"
88
ARG NPM_CONFIG_UNSAFE_PERM=true
99

10+
# add local files
11+
COPY /root /
12+
1013
RUN \
1114
echo "**** install build packages ****" && \
12-
apt-get update && \
13-
apt-get install -y \
15+
apk add --no-cache \
1416
g++ \
1517
gcc \
1618
git \
19+
libgcc \
20+
libxml2-dev \
1721
make \
18-
python && \
22+
nodejs \
23+
openssl-dev \
24+
python \
25+
tmux
26+
RUN \
1927
echo "**** Compile Cloud9 from source ****" && \
2028
git clone --depth 1 \
2129
https://github.com/c9/core.git c9sdk && \
2230
cd c9sdk && \
31+
sed -i \
32+
's/node-pty-prebuilt/node-pty/g' \
33+
plugins/node_modules/vfs-local/localfs.js && \
2334
mkdir -p /c9bins && \
24-
HOME=/c9bins scripts/install-sdk.sh && \
35+
sed -i \
36+
'/$URL/c\bash /install.sh' \
37+
scripts/install-sdk.sh && \
38+
HOME=/c9bins scripts/install-sdk.sh
39+
RUN \
2540
echo "**** Restructure files for copy ****" && \
2641
mkdir -p \
2742
/buildout && \

0 commit comments

Comments
 (0)