# How to reduce mybinder.org repository startup time

**URL:** <https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956>\
**Category:** discuss\
**Created:** [June 24, 2020, 6:17pm UTC](https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956 "2020-06-24T18:17:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hamel](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/hamel/32/1302_2.png) [@hamel](https://discourse.jupyter.org/u/hamel)\
**Post date:** [June 24, 2020, 6:37pm UTC](https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956/2 "2020-06-24T18:37:17Z")

</div>

You can also speed up your launch time by pre-building your Docker Containers with GitHub Actions, so that Binder is only pulling the container and not forced to a full build.

You can use the [repo2docker action](https://github.com/machine-learning-apps/repo2docker-action) to accomplish this, particularly you want to set the option `MYBINDERORG_CACHE: true`

An example would be to drop the following file `.github/workflows/binder.yaml` into your repo:

```auto
name: Build Notebook Container
on: [push] # You may want to trigger this Action on other things than a push.
jobs:
  build:
    runs-on: ubuntu-latest
    steps:

    - name: checkout files in repo
      uses: actions/checkout@master

    - name: update jupyter dependencies with repo2docker
      uses: machine-learning-apps/repo2docker-action@master
      with:
        DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
        DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
        MYBINDERORG_CACHE: true

```

This will **offload the building of Docker Images on GitHub entirely, thus speeding up your Binder launches incredibly**.

How does this work? See the [README](https://github.com/machine-learning-apps/repo2docker-action).

Please let me know if there are any questions.

---

_[View the full topic](https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956)._
