add yarn check-file in Dockerfile and bundle check

Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
pull/57/head
Lukas Pol 4 years ago
parent a0f93700e2
commit 567f8b82ee
  1. 2
      ruby_on_rails-postgres/docker-compose.yml
  2. 3
      ruby_on_rails-postgres/web/Dockerfile

@ -9,7 +9,7 @@ services:
POSTGRES_HOST_AUTH_METHOD: trust
web:
build: ./web
command: bash -c "rm -f tmp/pids/server.pid && yarn install --check-files && rake db:create db:migrate && bundle exec rails s -b 0.0.0.0"
command: bash -c "rm -f tmp/pids/server.pid && rake db:drop db:create db:migrate && bundle exec rails s -b 0.0.0.0"
volumes:
- ./web:/myapp
ports:

@ -15,7 +15,8 @@ COPY Gemfile.lock /myapp/Gemfile.lock
##
RUN gem install bundler:2.0.2
RUN bundle install
RUN bundle check || bundle install
RUN yarn install --check-files
COPY . /myapp
## Add Endpoint

Loading…
Cancel
Save