Skip to content

Commit

Permalink
Make Docker image smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
richardr1126 committed Feb 26, 2025
1 parent 9ae7c39 commit 568c9f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Use Node.js slim image
FROM node:slim
FROM node:current-alpine

# Add ffmpeg
RUN apt-get update && apt-get install -y ffmpeg
# Add ffmpeg using Alpine package manager
RUN apk add --no-cache ffmpeg

# Create app directory
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ https://github.com/user-attachments/assets/262b9a01-c608-4fee-893c-9461dd48c99b
docker run --name openreader-webui \
-p 3003:3003 \
-v openreader_docstore:/app/docstore \
richardr1126/openreader-webui:latest
richardr1126/openreader-webui:v0.2.2-alpine
```

(Optionally): Set the TTS `API_BASE` URL and/or `API_KEY` to be default for all devices
Expand All @@ -51,7 +51,7 @@ docker run --name openreader-webui \
-e API_BASE=http://host.docker.internal:8880/v1 \
-p 3003:3003 \
-v openreader_docstore:/app/docstore \
richardr1126/openreader-webui:latest
richardr1126/openreader-webui:v0.2.2-alpine
```

> Requesting audio from the TTS API happens on the Next.js server not the client. So the base URL for the TTS API should be accessible and relative to the Next.js server. If it is in a Docker you may need to use `host.docker.internal` to access the host machine, instead of `localhost`.
Expand Down

0 comments on commit 568c9f2

Please sign in to comment.