Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

louislam/bun-windows-via-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun for Windows via Docker Desktop

A temporary solution for running Bun on Windows. In case you don't have WSL or don't want to use it.

Mainly for development purpose. Not recommended for production.

Installation

Required tools:

npm install bun-windows-via-docker -g

Usage

  1. Make sure Docker Desktop is running.

  2. Use like a regular Bun CLI, example:

    bun index.ts
  3. Since Bun needs to access your current directory, you have to click Share it.

Expose Ports

Since eventually Bun will be running inside a Docker container, you need to expose ports to access it. --windows-ports is a special argument for this.

    bun --windows-ports "3000,3001" index.ts