2018-04-04 15:39:55 +09:00
|
|
|
FROM ruby:2.5
|
2017-10-07 11:43:26 +09:00
|
|
|
|
|
|
|
# see http://stackoverflow.com/questions/38453963/gitlab-ci-setup-error-could-not-find-a-javascript-runtime
|
|
|
|
RUN apt-get update && apt-get install nodejs -y
|
|
|
|
|
2017-12-27 01:08:11 +09:00
|
|
|
# throw errors if Gemfile has been modified since Gemfile.lock
|
|
|
|
RUN bundle config --global frozen 1
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
2017-10-07 11:43:26 +09:00
|
|
|
COPY Gemfile /usr/src/app/
|
2017-12-27 01:08:11 +09:00
|
|
|
COPY Gemfile.lock /usr/src/app/
|
|
|
|
RUN bundle install
|
|
|
|
|
2017-12-27 15:12:26 +09:00
|
|
|
COPY . /usr/src/app
|