Dart is now upgraded to version 2.8 Any change in dependencies or Dart tooling won’t trigger Docker to reinstall anything Ruby-related in the image afterward Name of the Dart package and its homepage were changed, forgot to do that
		
			
				
	
	
		
			23 lines
		
	
	
		
			409 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			409 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM google/dart:2.8
 | |
| 
 | |
| WORKDIR /app
 | |
| 
 | |
| # Get Ruby Sass
 | |
| RUN apt update && apt install ruby-sass ruby-dev build-essential -y
 | |
| RUN gem install sass-listen
 | |
| 
 | |
| # Get Dart dependencies
 | |
| RUN mkdir -p /pub-cache
 | |
| ENV PUB_CACHE=/pub-cache
 | |
| ENV PATH="${PATH}:/pub-cache/bin"
 | |
| RUN pub global activate webdev
 | |
| ADD pubspec.* /app/
 | |
| RUN pub get
 | |
| RUN pub get --offline
 | |
| 
 | |
| # ADD . /app/
 | |
| ADD web /app/
 | |
| ADD start.sh /app/
 | |
| 
 | |
| CMD ["./start.sh"]
 |