Compare commits
	
		
			2 Commits
		
	
	
		
			6df34b6236
			...
			ece29dd217
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| ece29dd217 | |||
| 2ca9c9dbe4 | 
							
								
								
									
										34
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										34
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -13,43 +13,11 @@ RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o / | |||||||
|  |  | ||||||
| RUN echo \ | RUN echo \ | ||||||
|       "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ |       "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | ||||||
|       "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | |       "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list >/dev/null | ||||||
|       tee /etc/apt/sources.list.d/docker.list >/dev/null |  | ||||||
|  |  | ||||||
| RUN apt-get update | RUN apt-get update | ||||||
| RUN apt-get install -y docker-ce-cli | RUN apt-get install -y docker-ce-cli | ||||||
|  |  | ||||||
| # Install tea |  | ||||||
| # RUN apt-get install -y git make golang |  | ||||||
| # RUN git clone https://gitea.com/gitea/tea.git |  | ||||||
| # RUN cd tea && make && make install |  | ||||||
|  |  | ||||||
| # Install flutter |  | ||||||
| RUN apt-get install -y curl git wget \ |  | ||||||
|       unzip libgconf-2-4 gdb \ |  | ||||||
|       libstdc++6 libglu1-mesa fonts-droid-fallback \ |  | ||||||
|       lib32stdc++6 python3 sed |  | ||||||
|  |  | ||||||
| RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter |  | ||||||
| RUN git config --global --add safe.directory /usr/local/flutter |  | ||||||
|  |  | ||||||
| ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}" |  | ||||||
|  |  | ||||||
| RUN chown -R jenkins:jenkins /usr/local/flutter |  | ||||||
|  |  | ||||||
| # Run flutter doctor and upgrade |  | ||||||
| USER jenkins |  | ||||||
|  |  | ||||||
| RUN flutter config --no-cli-animations |  | ||||||
| RUN flutter doctor -v |  | ||||||
| RUN flutter channel master |  | ||||||
| RUN flutter upgrade |  | ||||||
|  |  | ||||||
| RUN dart pub global activate flutter_distributor |  | ||||||
| RUN echo 'export PATH="$PATH:`dart pub global path`"' >>~/.bashrc |  | ||||||
|  |  | ||||||
| USER root |  | ||||||
|  |  | ||||||
| #Install OpenSSL | #Install OpenSSL | ||||||
| RUN apt-get install -y openssl | RUN apt-get install -y openssl | ||||||
|  |  | ||||||
|   | |||||||
| @@ -8,37 +8,6 @@ RUN apk add --no-cache docker docker-compose | |||||||
| # Install tea | # Install tea | ||||||
| RUN apk add --no-cache tea | RUN apk add --no-cache tea | ||||||
|  |  | ||||||
| # Install glibc compatibility for Flutter/Dart |  | ||||||
| RUN apk --no-cache add ca-certificates wget |  | ||||||
| RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub |  | ||||||
| RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk |  | ||||||
| RUN apk add --force-overwrite glibc-2.34-r0.apk |  | ||||||
| RUN rm glibc-2.34-r0.apk |  | ||||||
|  |  | ||||||
| # Install flutter dependencies |  | ||||||
| RUN apk --no-cache add bash curl git unzip libstdc++ |  | ||||||
|  |  | ||||||
| # Install flutter |  | ||||||
| RUN apk --no-cache add bash curl git ca-certificates wget unzip |  | ||||||
| RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter |  | ||||||
| RUN git config --global --add safe.directory /usr/local/flutter |  | ||||||
|  |  | ||||||
| ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}" |  | ||||||
|  |  | ||||||
| RUN chown -R jenkins:jenkins /usr/local/flutter |  | ||||||
| # Run flutter doctor and upgrade |  | ||||||
| USER jenkins |  | ||||||
|  |  | ||||||
| RUN flutter config --no-cli-animations |  | ||||||
| RUN flutter doctor -v |  | ||||||
| RUN flutter channel master |  | ||||||
| RUN flutter upgrade |  | ||||||
|  |  | ||||||
| RUN dart pub global activate flutter_distributor |  | ||||||
| RUN echo 'export PATH="$PATH:`dart pub global path`"' >>/etc/profile |  | ||||||
|  |  | ||||||
| USER root |  | ||||||
|  |  | ||||||
| #Install OpenSSL | #Install OpenSSL | ||||||
| RUN apk add --no-cache openssl | RUN apk add --no-cache openssl | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user