I just tried going through the Docker installation guide and I got the following warning: > Warning: the running version of Bundler (1.16.3) is older than the version that created the lockfile (1.16.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. This way the build should always use the latest version of Bundler
19 lines
360 B
Docker
19 lines
360 B
Docker
FROM starefossen/ruby-node:2-8-stretch
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY Gemfile Gemfile.lock yarn.lock ./
|
|
|
|
RUN yarn install && yarn check --integrity
|
|
|
|
ENV RAILS_ENV development
|
|
|
|
ENV YARN_INTEGRITY_ENABLED "false"
|
|
|
|
RUN gem install bundler
|
|
|
|
RUN bundle install --jobs 20 --retry 5
|
|
|
|
ENTRYPOINT ["bundle", "exec"]
|
|
|
|
CMD ["rails", "server", "-b", "0.0.0.0", "-p", "3000"]
|