notebook/Dockerfile
Euan Kemp 97e85d46bd use 'bundle's version of 'rails'
Installing rails using 'gem' is much more tricky to manage than using
the version set in the Gemfile via 'bundle exec'
2018-05-22 22:21:54 -07:00

10 lines
257 B
Docker

FROM ruby:2.3.1
RUN apt-get update -qq && \
apt-get install -y build-essential libpq-dev nodejs imagemagick libmagickwand-dev && \
mkdir /notebook-ai
COPY . /notebook-ai
WORKDIR /notebook-ai
RUN bundle install
RUN rake db:create
RUN rake db:migrate