LogoRobo.js
TemplatesDiscord bots

Docker

A Discord bot starter template containerized with Docker.

Docker

Starter template containerized with Docker for consistent deployments.

Getting Started

Create a project with this template:

npx create-robo@next <project-name> --template discord-bots/docker-ts

Then navigate into your project directory:

cd <project-name>

Run with Docker:

docker-compose up

Or run locally:

npm run dev

Features

  • Dockerfile included
  • Multi-stage builds for smaller images
  • Production-ready setup
ping.ts/ping
messageCreate.ts
Dockerfile
.env

Docker Commands

# Build the image
docker build -t my-robo-bot .

# Run the container
docker run -d my-robo-bot

# Use docker-compose
docker-compose up -d

Hosting

Deploy to any Docker-compatible platform or use RoboPlay:

npm run deploy

On this page