Skip to content

Commit 568c9f2

Browse files
committed
Make Docker image smaller
1 parent 9ae7c39 commit 568c9f2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Use Node.js slim image
2-
FROM node:slim
2+
FROM node:current-alpine
33

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

77
# Create app directory
88
WORKDIR /app

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ https://github.com/user-attachments/assets/262b9a01-c608-4fee-893c-9461dd48c99b
4242
docker run --name openreader-webui \
4343
-p 3003:3003 \
4444
-v openreader_docstore:/app/docstore \
45-
richardr1126/openreader-webui:latest
45+
richardr1126/openreader-webui:v0.2.2-alpine
4646
```
4747

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

5757
> 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`.

0 commit comments

Comments
 (0)