Dockerfile 303 Bytes
Newer Older
1
FROM starefossen/ruby-node:latest
2 3 4 5 6

RUN mkdir /api
WORKDIR /api
ADD . /api

7 8
EXPOSE 3000

9 10
ENV RAILS_ENV production

11
RUN bundle install
Zac Wood's avatar
Zac Wood committed
12
RUN yarn install
13
RUN export SECRET_KEY_BASE=$(rails secret)
14
RUN rails assets:precompile
15 16
RUN rails db:migrate
RUN rails db:seed
Zac Wood's avatar
Zac Wood committed
17
RUN rails runner db/load_course_ratings.rb