Building Docker Images and Deployment file with LDL
Background
Key Concepts
Building and Pushing Your Docker Image
cd docker-application-template/appfrom fastapi import FastAPI
from datetime import datetime
app = FastAPI()
@app.get("/")
def read_root():
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
return {"Hello!" f"Today is - {current_time}"}Creating Deployment Files with LDL
Next Steps
Last updated