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. Getting Started

Build and push your Docker image

PreviousGetting StartedNextHow to Use the Test Environment

Last updated 8 months ago

This step will walk you through building and pushing your Docker image to your container registry. This is useful to building custom images for your use case.

  1. Clone the :

git clone https://github.com/swanchain/docker-application-template.git
  1. Navigate to the root of the cloned repo:

cd docker-application-template
  1. Build the Docker image (example: filswan/helloworld:v1.0):

docker build --platform linux/amd64 --tag <username>/<repo>:<tag> .
  1. Push your container registry:

docker push <username>/<repo>:<tag>

Note: After completing the above process, you can view the image information on the , as shown below:

img
docker-application-template
docker hub