add yarn check-file in Dockerfile and bundle check

Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
This commit is contained in:
Lukas Pol 2020-04-24 17:11:35 -03:00
parent a0f93700e2
commit 567f8b82ee
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ services:
POSTGRES_HOST_AUTH_METHOD: trust POSTGRES_HOST_AUTH_METHOD: trust
web: web:
build: ./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: volumes:
- ./web:/myapp - ./web:/myapp
ports: ports:

View File

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