Skip to content

Commit

Permalink
update alpine to java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Feb 4, 2025
1 parent a091df0 commit ade3e1f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ jobs:
- name: Ubuntu
dockerfile: LavalinkServer/docker/Dockerfile
suffix: ''
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
- name: Alpine
dockerfile: LavalinkServer/docker/alpine.Dockerfile
suffix: '-alpine'
platforms: linux/amd64,linux/arm64/v8
- name: Distroless
dockerfile: LavalinkServer/docker/distroless.Dockerfile
suffix: '-distroless'
platforms: linux/amd64,linux/arm64/v8
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -160,7 +163,7 @@ jobs:
with:
file: ${{ matrix.dockerfile }}
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
platforms: ${{ matrix.platforms }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion LavalinkServer/docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM azul/zulu-openjdk-alpine:17-jre-headless-latest
FROM azul/zulu-openjdk-alpine:21-jre-headless-latest

RUN apk add --no-cache libgcc

Expand Down
10 changes: 5 additions & 5 deletions docs/configuration/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Install [Docker](https://docs.docker.com/engine/install/) & [Docker Compose](htt

## Docker Image Variants

| Variant | Description | User | Group | Example |
|--------------|----------------------------------------------|-------|-------|-----------------------------------------------|
| `Ubuntu` | Default variant, based on Ubuntu | 322 | 322 | `ghcr.io/lavalink-devs/lavalink:4` |
| `Alpine` | Smaller image size, based on Alpine | 322 | 322 | `ghcr.io/lavalink-devs/lavalink:4-alpine` |
| `Distroless` | Even smaller image size, based on Distroless | 65534 | 65534 | `ghcr.io/lavalink-devs/lavalink:4-distroless` |
| Variant | Description | Java Version | User | Group | Example |
|--------------|----------------------------------------------|--------------|-------|-------|-----------------------------------------------|
| `Ubuntu` | Default variant, based on Ubuntu | 18 | 322 | 322 | `ghcr.io/lavalink-devs/lavalink:4` |
| `Alpine` | Smaller image size, based on Alpine | 21 | 322 | 322 | `ghcr.io/lavalink-devs/lavalink:4-alpine` |
| `Distroless` | Even smaller image size, based on Distroless | 21 | 65534 | 65534 | `ghcr.io/lavalink-devs/lavalink:4-distroless` |

Create a `docker-compose.yml` with the following content:

Expand Down

0 comments on commit ade3e1f

Please sign in to comment.