Skip to content

light-cloud-com/starter-dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light Cloud

Custom Dockerfile Boilerplate

A template for deploying any containerized application on Light Cloud.


Features

  • Custom Dockerfile template
  • Example Node.js server (replace with your own)
  • REST API with health check endpoint
  • Ready for any runtime or language

API Endpoints

Method Endpoint Description
GET / Welcome message and API info
GET /health Health check with uptime

Customizing

Replace the contents with your own application. Just make sure your Dockerfile:

  1. Exposes port 8080 - Cloud Run expects this port
  2. Listens on 0.0.0.0 - Not just localhost
  3. Responds to health checks - Implement a /health endpoint
# Example Dockerfile structure
FROM your-base-image

WORKDIR /app

# Install dependencies
COPY . .

# Expose port 8080 (required for Cloud Run)
EXPOSE 8080

# Start your application
CMD ["your-start-command"]

Local Development

# Build the image
docker build -t my-app .

# Run the container
docker run -p 8080:8080 my-app

The API will be available at http://localhost:8080

Deploy to Light Cloud

1. Create an Account

Visit console.light-cloud.com and sign up with GitHub or Google.

2. Create New Application

  1. Click "New Application" in the dashboard
  2. Select "Container" as the deployment type
  3. Choose "Dockerfile" as the runtime

3. Connect Repository

  • Option A: Fork this repository and connect it via GitHub
  • Option B: Push this code to your own GitHub repository and connect it

4. Configure Settings

Light Cloud will auto-detect your Dockerfile:

Setting Value
Port 8080
Dockerfile Auto-detected from root

5. Deploy

Click "Deploy" and your app will be live in minutes!

Your app will be available at https://your-app.light-cloud.io


WebsiteDocumentationConsole

Made with ☁️ by Light Cloud

About

Custom Dockerfile starter boilerplate for Light Cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors