Skip to content
Fresh

Bun

Back

Guides

Bun language-specific guide

Learn how to containerize JavaScript applications with the Bun runtime.

JavaScript Docker Hardened Images

10 minutes

1

Containerize your app

2

Develop your app

3

Configure CI/CD

4

Test your deployment

« Back to all guides

Bun language-specific guide

Table of contents


Learn how to containerize JavaScript applications with the Bun runtime.

Time to complete10 minutes

The Bun getting started guide teaches you how to create a containerized Bun application using Docker.

Acknowledgment

Docker would like to thank Pradumna Saraf for his contribution to this guide.

What will you learn?

  • Containerize and run a Bun application using Docker
  • Set up a local environment to develop a Bun application using containers
  • Configure a CI/CD pipeline for a containerized Bun application using GitHub Actions
  • Deploy your containerized application locally to Kubernetes to test and debug your deployment

Prerequisites

  • Basic understanding of JavaScript is assumed.
  • You must have familiarity with Docker concepts like containers, images, and Dockerfiles. If you are new to Docker, you can start with the Docker basics guide.

After completing the Bun getting started modules, you should be able to containerize your own Bun application based on the examples and instructions provided in this guide.

Start by containerizing an existing Bun application.

Modules

  1. Containerize your app Learn how to containerize a Bun application.

  2. Develop your app Learn how to develop your Bun application locally.

  3. Configure CI/CD Learn how to configure CI/CD using GitHub Actions for your Bun application.

  4. Test your deployment Learn how to develop locally using Kubernetes