notebook/Dockerfile
Joel Hayhurst b3a216e197 Run rails db:setup in Dockerfile
Running rails db:migrate causes problems with older migrations
which are broken by newer code.
Also update db/schema.rb to the latest one generated by running
rails db:migrate.
2020-02-25 01:09:36 -08:00

9 lines
237 B
Docker

FROM ruby:2.6.3
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 rails db:setup