2019-05-27 06:13:34 +00:00
|
|
|
FROM lsiobase/ubuntu:arm32v7-bionic
|
2019-05-26 23:10:27 +00:00
|
|
|
|
2019-05-27 06:13:34 +00:00
|
|
|
# set version label
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VERSION
|
|
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
|
|
LABEL maintainer="thelamer"
|
2019-05-26 23:10:27 +00:00
|
|
|
ARG NPM_CONFIG_UNSAFE_PERM=true
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
echo "**** install build packages ****" && \
|
|
|
|
apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
g++ \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
make \
|
|
|
|
python && \
|
|
|
|
echo "**** Compile Cloud9 from source ****" && \
|
|
|
|
git clone --depth 1 \
|
|
|
|
https://github.com/c9/core.git c9sdk && \
|
|
|
|
cd c9sdk && \
|
|
|
|
mkdir -p /c9bins && \
|
|
|
|
HOME=/c9bins scripts/install-sdk.sh && \
|
|
|
|
echo "**** Restructure files for copy ****" && \
|
|
|
|
mkdir -p \
|
|
|
|
/buildout && \
|
|
|
|
rm -Rf \
|
|
|
|
/c9bins/.c9/tmp && \
|
|
|
|
mv \
|
|
|
|
/c9bins \
|
|
|
|
/buildout/c9bins && \
|
|
|
|
mv \
|
|
|
|
/c9sdk \
|
|
|
|
/buildout/
|