mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 15:28:06 +02:00
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
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue