| 
									
										
										
										
											2020-11-01 23:45:38 +00:00
										 |  |  | FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.11
 | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  | # add local files
 | 
					
						
							|  |  |  | COPY /root /
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  | RUN \
 | 
					
						
							|  |  |  |  echo "**** install build packages ****" && \
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  |  apk add --no-cache \
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  | 	g++ \
 | 
					
						
							|  |  |  | 	gcc \
 | 
					
						
							|  |  |  | 	git \
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  | 	libgcc \
 | 
					
						
							|  |  |  | 	libxml2-dev \
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  | 	make \
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  | 	nodejs \
 | 
					
						
							|  |  |  | 	openssl-dev \
 | 
					
						
							|  |  |  | 	python \
 | 
					
						
							|  |  |  | 	tmux
 | 
					
						
							|  |  |  | RUN \
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  |  echo "**** Compile Cloud9 from source ****" && \
 | 
					
						
							|  |  |  |  git clone --depth 1 \
 | 
					
						
							|  |  |  | 	https://github.com/c9/core.git c9sdk && \
 | 
					
						
							|  |  |  |  cd c9sdk && \
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  |  sed -i \
 | 
					
						
							|  |  |  | 	's/node-pty-prebuilt/node-pty/g' \
 | 
					
						
							|  |  |  | 	plugins/node_modules/vfs-local/localfs.js && \
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  |  mkdir -p /c9bins && \
 | 
					
						
							| 
									
										
										
										
											2019-06-21 06:42:22 +00:00
										 |  |  |  sed -i \
 | 
					
						
							|  |  |  | 	'/$URL/c\bash /install.sh' \
 | 
					
						
							|  |  |  | 	scripts/install-sdk.sh && \
 | 
					
						
							|  |  |  |  HOME=/c9bins scripts/install-sdk.sh
 | 
					
						
							|  |  |  | RUN \
 | 
					
						
							| 
									
										
										
										
											2019-05-26 23:10:27 +00:00
										 |  |  |  echo "**** Restructure files for copy ****" && \
 | 
					
						
							|  |  |  |  mkdir -p \
 | 
					
						
							|  |  |  | 	/buildout && \
 | 
					
						
							|  |  |  |  rm -Rf \
 | 
					
						
							|  |  |  | 	/c9bins/.c9/tmp && \
 | 
					
						
							|  |  |  |  mv \
 | 
					
						
							|  |  |  | 	/c9bins \
 | 
					
						
							|  |  |  | 	/buildout/c9bins && \
 | 
					
						
							|  |  |  |  mv \
 | 
					
						
							|  |  |  | 	/c9sdk \
 | 
					
						
							|  |  |  | 	/buildout/
 |