FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy # set version label ARG BUILD_DATE ARG VERSION=jammy LABEL build_version="forge.citizen4.eu version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="miklo" ARG NPM_CONFIG_UNSAFE_PERM=true RUN \ echo "**** install build packages ****" && \ apt-get update && \ apt-get install -y \ g++ \ gcc \ git \ make \ python2 && \ 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/