Skip to content

Commit

Permalink
feat: add docker instructions (#1687)
Browse files Browse the repository at this point in the history
Co-authored-by: Carson McManus <[email protected]>
  • Loading branch information
nhedger and dyc3 authored Jan 19, 2025
1 parent bf67725 commit 32f8f4c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/content/docs/guides/manual-installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,33 @@ Biome is available as a [Homebrew formula](https://formulae.brew.sh/formula/biom
brew install biome
```

## Docker

Biome publishes [official Docker images](https://github.com/biomejs/docker/pkgs/container/biome) that support
the **amd64** and **arm64** architectures for all Biome versions starting from `v1.7.0`.

```
ghcr.io/biomejs/biome:{major}
ghcr.io/biomejs/biome:{major}.{minor}
ghcr.io/biomejs/biome:{major}.{minor}.{patch}
```

Here are a couple examples on how to use the Docker image:

:::note
The default workdir is `/code` in the Docker image.
:::

```shell
# Lint files
docker run -v $(pwd):/code ghcr.io/biomejs/biome lint
docker run -v $(pwd):/code ghcr.io/biomejs/biome lint --write

# Format files
docker run -v $(pwd):/code ghcr.io/biomejs/biome format
docker run -v $(pwd):/code ghcr.io/biomejs/biome format --write
```

## Using a published binary

To install Biome, grab the executable for your platform from the [latest CLI release](https://github.com/biomejs/biome/releases) on GitHub and give it execution permission.
Expand Down

0 comments on commit 32f8f4c

Please sign in to comment.