mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 17:05:36 -04:00 
			
		
		
		
	1. Speed-up nokogiri install significantly by turning off lib compilation 2. File at http://my.jasondenney.com/extjs-4.1.1.zip can't be found, but it has been used for a long time. Now just including it in the repository. 3. Added helping documentation in Dockerfile
		
			
				
	
	
		
			32 lines
		
	
	
		
			876 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			876 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM ruby:2.1
 | |
| 
 | |
| # throw errors if Gemfile has been modified since Gemfile.lock
 | |
| RUN bundle config --global frozen 1
 | |
| 
 | |
| RUN mkdir -p /usr/src/app
 | |
| WORKDIR /usr/src/app
 | |
| 
 | |
| RUN apt-get update && apt-get install -y nodejs --no-install-recommends && \
 | |
|     apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && \
 | |
|     apt-get install -y zip unzip --no-install-recommends && \
 | |
|     rm -rf /var/lib/apt/lists/*
 | |
| 
 | |
| COPY Gemfile /usr/src/app/
 | |
| COPY Gemfile.lock /usr/src/app/
 | |
| 
 | |
| RUN env NOKOGIRI_USE_SYSTEM_LIBRARIES=true bundle install
 | |
| 
 | |
| #COPY install_extjs.rb /usr/src/app/
 | |
| #RUN /usr/src/app/install_extjs.rb
 | |
| 
 | |
| COPY  extjs-4.1.1.zip /usr/lib/
 | |
| 
 | |
| RUN unzip -d /usr/lib /usr/lib/extjs-4.1.1.zip; \
 | |
|     mv /usr/lib/ext-4.1.1a /usr/lib/extjs
 | |
| 
 | |
| COPY install_famfamfam.rb /usr/src/app/
 | |
| RUN /usr/src/app/install_famfamfam.rb
 | |
| 
 | |
| EXPOSE 3000
 | |
| CMD ["rails", "server", "-b", "0.0.0.0"]
 |