Dockerfile 195 Bytes
Newer Older
1
2
3
4
5
6
FROM ruby:2.5

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 export SECRET_KEY_BASE=$(rails secret)
13
RUN rails db:migrate
14
RUN rails db:seed