Dockerfile 242 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 export SECRET_KEY_BASE=$(rails secret)
13
RUN rake assets:precompile
14 15
RUN rails db:migrate
RUN rails db:seed