Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(docker): drop support for armv7 (#532)

Corentin Thomasset9a6e822e7145
diff --git a/.changeset/big-beans-win.md b/.changeset/big-beans-win.md
new file mode 100644
index 00000000..fa9819f1
--- /dev/null
+++ b/.changeset/big-beans-win.md
@@ -0,0 +1,6 @@
+---
+"@papra/app-client": patch
+"@papra/app-server": patch
+---
+
+Drop docker armv7 support
diff --git a/.github/workflows/release-docker.yaml b/.github/workflows/release-docker.yaml
index 71e7d939..7f19f0e0 100644
--- a/.github/workflows/release-docker.yaml
+++ b/.github/workflows/release-docker.yaml
@@ -44,7 +44,7 @@ jobs:
with:
context: .
file: ./docker/Dockerfile
- platforms: linux/amd64,linux/arm64,linux/arm/v7
+ platforms: linux/amd64,linux/arm64
push: true
tags: |
corentinth/papra:latest-root
@@ -57,7 +57,7 @@ jobs:
with:
context: .
file: ./docker/Dockerfile.rootless
- platforms: linux/amd64,linux/arm64,linux/arm/v7
+ platforms: linux/amd64,linux/arm64
push: true
tags: |
corentinth/papra:latest
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 476b2177..8d16b1e9 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -11,10 +11,6 @@ FROM base AS build
WORKDIR /app
-# --- add build deps for sharp/node-gyp, needed to be explicitly installed for armv7 ---
-RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
-ENV npm_config_python=/usr/bin/python3
-
COPY pnpm-lock.yaml ./
COPY pnpm-workspace.yaml ./
COPY apps/papra-client/package.json apps/papra-client/package.json
diff --git a/docker/Dockerfile.rootless b/docker/Dockerfile.rootless
index d1596c73..84599848 100644
--- a/docker/Dockerfile.rootless
+++ b/docker/Dockerfile.rootless
@@ -13,10 +13,6 @@ FROM base AS build
WORKDIR /app
-# --- add build deps for sharp/node-gyp, needed to be explicitly installed for armv7 ---
-RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ && rm -rf /var/lib/apt/lists/*
-ENV npm_config_python=/usr/bin/python3
-
COPY pnpm-lock.yaml ./
COPY pnpm-workspace.yaml ./
COPY apps/papra-client/package.json apps/papra-client/package.json
diff --git a/package.json b/package.json
index 549b8e42..a4f09ded 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
"keywords": [],
"scripts": {
"docker:build:root": "docker build -t papra -f docker/Dockerfile .",
- "docker:build:root:armv7": "docker buildx build --platform linux/arm/v7 -t papra -f docker/Dockerfile --load .",
"docker:build:root:amd64": "docker buildx build --platform linux/amd64 -t papra -f docker/Dockerfile --load .",
"docker:build:root:arm64": "docker buildx build --platform linux/arm64 -t papra -f docker/Dockerfile --load .",
"docker:build:rootless": "docker build -t papra-rootless -f docker/Dockerfile.rootless .",