Lagrange Dao
  • Introduction
  • Getting Started
    • Build and push your Docker image
    • How to Use the Test Environment
  • Space
    • Intro
      • Lagrange Definition Language(LDL)
      • Lagrange-cli
    • Create Space
    • Build Space
      • Option 1: Langrange-cli
      • Option 2: Web Interface
    • Fork Space
    • Run Space
    • Space Settings
      • Instance Type
      • Space Hardware
    • Use Case
  • Datasets
    • Data Card
  • Models
  • Case Study
    • Stable Diffusion
      • How to Build Stable Diffusion Space
      • How to Integrate Stable Diffusion via Inference API
    • Diffuser/Transformer
      • How to Integrate Diffuser/Transformer
  • Decentralized Auction Marketplace
    • Auction Engine
    • Bidding Task State Machine
    • Reputation System
  • Security
    • Access Tokens
  • Token
  • Mars Testnet
    • Before You Get Started
    • Computing Provider Setup
    • Building Space
    • Using Space
    • Case Study
    • FAQ
  • API Reference
Powered by GitBook
On this page
  1. Space

Build Space

PreviousCreate SpaceNextOption 1: Langrange-cli

Last updated 8 months ago

After creating a Space, you'll have an empty repository to develop your code. A dockerfile or deploy.yaml is required.

  • A dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image.

  • A deploy.yaml is a configuration file, written using , which is used to specify deployment details for a Space on the Lagrange.

You can create/upload each file through the or via .

dockerfile or deploy.yaml

In determining the choice of deployment file, consider the following:

  • Use a dockerfile if you don't have a pre-built image.

  • Use deploy.yaml if you have an existing image to deploy.

  • For many files, is recommended to choose to upload them.

  • For large files( >50MB), upload to first, and add its IPFS link to your dockerfile or deploy.yaml.

Lagrange Definition Language (LDL)
Web UI
Lagrange-cli
Lagrange-cli
Multichain.Storage