add yarn check-file in Dockerfile and bundle check
Signed-off-by: Lukas Pol <lukaspaespol@gmail.com>
This commit is contained in:
parent
a0f93700e2
commit
567f8b82ee
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user