# Installatron Server Dockerfile

This Dockerfile builds a self-contained Installatron Server image.

## Build

Debian 13 / Trixie, default:

```sh
docker build --no-cache -t installatron-server .
```

Debian 12 / Bookworm, compatibility build:

```sh
docker build --no-cache --build-arg DEBIAN_RELEASE=bookworm-slim -t installatron-server:bookworm .
```

## Run

```sh
docker run -d --name installatron-server -p 8443:443 installatron-server
```

Open:

```text
https://IP:8443/installatron/
```

Get an admin login:

```sh
docker exec -it installatron-server /usr/local/installatron/installatron --repair --reset-admin
```

Get an admin SSO session:

```sh
docker exec -it installatron-server /usr/local/installatron/installatron --createsession
```

## Persistence

For production-style deployments, mount persistent storage for at least:

- `/usr/local/installatron`
- `/var/lib/mysql`

The image declares these as Docker volumes, but Kubernetes deployments should use explicit PersistentVolumeClaims.

## Notes

Debian 13 is the default in this revision, but Debian 12 remains available through the `DEBIAN_RELEASE` build argument. If Debian 13 has not yet been validated with the Installatron Server installer and runtime stack, use the Debian 12 build for customer-facing production guidance until testing is complete.
