Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(docker): release rootless as :latest (#170)

Corentin Thomasset14489457b28c
diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml
index ea13bbee..f8de96d7 100644
--- a/.github/workflows/release-docker.yaml
+++ b/.github/workflows/release-docker.yaml
@@ -65,7 +65,9 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
+ corentinth/papra:latest
corentinth/papra:latest-rootless
corentinth/papra:${{ env.RELEASE_VERSION }}-rootless
+ ghcr.io/papra-hq/papra:latest
ghcr.io/papra-hq/papra:latest-rootless
ghcr.io/papra-hq/papra:${{ env.RELEASE_VERSION }}-rootless
\ No newline at end of file
diff --git a/apps/docs/src/content/docs/02-self-hosting/01-using-docker.md b/apps/docs/src/content/docs/02-self-hosting/01-using-docker.md
index ce03620f..aad0648c 100644
--- a/apps/docs/src/content/docs/02-self-hosting/01-using-docker.md
+++ b/apps/docs/src/content/docs/02-self-hosting/01-using-docker.md
@@ -21,12 +21,22 @@ Verify your installation:
docker --version
```
+## Installation
+
+You can run Papra using the following command:
+
+```bash frame="none"
+docker run -d --name papra --restart unless-stopped -p 1221:1221 ghcr.io/papra-hq/papra
+```
+
+It will automatically download the latest image and start the container. The application will be available at [http://localhost:1221](http://localhost:1221).
+
## Root and Rootless installation
Papra can be installed in two different ways:
+- **Rootless** (recommended): This method does not require root privileges to run. The images are suffixed with `-rootless` like `corentinth/papra:latest-rootless` or `corentinth/papra:1.0.0-rootless` and the default `:latest` tag points to the latest rootless image.
- **Root**: This is the default installation method. It requires root privileges to run. The images are suffixed with `-root` like `corentinth/papra:latest-root` or `corentinth/papra:1.0.0-root`.
-- **Rootless**: This method does not require root privileges to run. The images are suffixed with `-rootless` like `corentinth/papra:latest-rootless` or `corentinth/papra:1.0.0-rootless`.
## Image Sources
@@ -34,12 +44,14 @@ Papra Docker images are available on both **Docker Hub** and **GitHub Container
```bash frame="none"
# Using Docker Hub
-docker pull corentinth/papra:latest-root
+docker pull corentinth/papra:latest
docker pull corentinth/papra:latest-rootless
+docker pull corentinth/papra:latest-root
# Using GitHub Container Registry
-docker pull ghcr.io/papra-hq/papra:latest-root
+docker pull ghcr.io/papra-hq/papra:latest
docker pull ghcr.io/papra-hq/papra:latest-rootless
+docker pull ghcr.io/papra-hq/papra:latest-root
```
## Basic Usage