20 lines
		
	
	
		
			498 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			498 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM ruby:2.7.2
 | 
						|
 | 
						|
RUN apt-get update && apt-get install -y \
 | 
						|
  curl \
 | 
						|
  build-essential \
 | 
						|
  curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
 | 
						|
  curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
 | 
						|
  echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
 | 
						|
  apt-get update && apt-get install -y nodejs yarn sqlite3 cron
 | 
						|
 | 
						|
ENV RACK_ENV production
 | 
						|
 | 
						|
WORKDIR /code
 | 
						|
COPY . /code
 | 
						|
 | 
						|
RUN bundle install
 | 
						|
 | 
						|
EXPOSE 4567
 | 
						|
 | 
						|
CMD ["/bin/ls", "-l"] |