e2b-dev / E2B

Secure open source cloud runtime for AI apps & AI agents
https://e2b.dev/docs
Apache License 2.0
7.02k stars 458 forks source link

Use local Docker instance when building custom sandboxes #317

Closed mlejva closed 7 months ago

mlejva commented 8 months ago

Currently, when a user runs e2b build we upload the Docker context to our backend and build the image there.

This bring several drawbacks like slowness, bad DX because we don't support multi-stage builds or private images, and requirement from us to manage this whole service.

Instead, we should let users to build their images locally (or in CI).

We would have two commands (naming can change):

  1. e2b build - builds the image locally and pushes it to our backend
  2. e2b push <docker-image-specifier>- pushes the image to our backend
jakubno commented 7 months ago

Solved by https://github.com/e2b-dev/infra/pull/103 and #338