[PR #25] [MERGED] feat: Docker API Support (v2.1) #25

Closed
opened 2026-03-02 11:45:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/karant-dev/AutoRedact/pull/25
Author: @karant-dev
Created: 12/13/2025
Status: Merged
Merged: 12/13/2025
Merged by: @karant-dev

Base: mainHead: feature/v2.1-docker-api


📝 Commits (2)

  • d04ce7d feat: add docker API (v2.1)
  • 82e4872 Merge branch 'main' into feature/v2.1-docker-api

📊 Changes

6 files changed (+865 additions, -32 deletions)

View changed files

📝 Dockerfile (+56 -26)
📝 docker-compose.yml (+23 -3)
📝 package-lock.json (+692 -2)
📝 package.json (+3 -0)
📝 src/core/processor.ts (+1 -1)
src/server.ts (+90 -0)

📄 Description

Summary

Adds a Fastify-based HTTP API exposed via Docker, enabling programmatic redaction.

Features

  • API Endpoint: POST /redact accepting image uploads.
  • Docker: Multi-stage build support for web and api targets.
  • Compatibility: Switch to node:20-slim (Debian) for reliable canvas builds.
  • Verification: Verified locally and with Docker (configured for larger disk size).

Fixes

  • Addressed node-canvas build failures by adding Debian build deps.
  • Fixed type import in src/server.ts.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/karant-dev/AutoRedact/pull/25 **Author:** [@karant-dev](https://github.com/karant-dev) **Created:** 12/13/2025 **Status:** ✅ Merged **Merged:** 12/13/2025 **Merged by:** [@karant-dev](https://github.com/karant-dev) **Base:** `main` ← **Head:** `feature/v2.1-docker-api` --- ### 📝 Commits (2) - [`d04ce7d`](https://github.com/karant-dev/AutoRedact/commit/d04ce7d2ebf0fc87eb67a88328edc3b8b7d2b805) feat: add docker API (v2.1) - [`82e4872`](https://github.com/karant-dev/AutoRedact/commit/82e4872ec2ebbef140a2341634bcb3cf12ad4afe) Merge branch 'main' into feature/v2.1-docker-api ### 📊 Changes **6 files changed** (+865 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+56 -26) 📝 `docker-compose.yml` (+23 -3) 📝 `package-lock.json` (+692 -2) 📝 `package.json` (+3 -0) 📝 `src/core/processor.ts` (+1 -1) ➕ `src/server.ts` (+90 -0) </details> ### 📄 Description ## Summary Adds a Fastify-based HTTP API exposed via Docker, enabling programmatic redaction. ## Features - **API Endpoint**: `POST /redact` accepting image uploads. - **Docker**: Multi-stage build support for `web` and `api` targets. - **Compatibility**: Switch to `node:20-slim` (Debian) for reliable `canvas` builds. - **Verification**: Verified locally and with Docker (configured for larger disk size). ## Fixes - Addressed `node-canvas` build failures by adding Debian build deps. - Fixed type import in `src/server.ts`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 11:45:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AutoRedact#25
No description provided.