Switch to bun, document docker
Docker / build-and-push-image (push) Successful in 40s

This commit is contained in:
Jon Staab
2026-04-14 10:59:24 -07:00
parent 251e792263
commit 1651ab9c99
6 changed files with 176 additions and 1044 deletions
+8 -21
View File
@@ -22,15 +22,6 @@ npm install
PORT=3100 npm start
```
## Docker
Build and run the service with Docker:
```bash
docker build -t vthumbs:local .
docker run --rm -p 3100:3100 -e PORT=3100 vthumbs:local
```
## Usage
```http
@@ -39,18 +30,6 @@ GET /thumbnail?url=https://example.com/video.mp4
Returns a JPEG image extracted at 1 second.
## Health Check
```http
GET /health
```
Returns JSON:
```json
{"status":"ok"}
```
## Client Configuration
Configure your client app with the base URL where this service is deployed.
@@ -60,3 +39,11 @@ Example:
```env
THUMBNAIL_SERVICE_URL=https://your-thumbnail-service.example.com
```
## Deployment
To run your own server:
```sh
docker run -d -p 3100:3100 ghcr.io/coracle-social/vthumbs:latest
```