diff --git a/Dockerfile b/Dockerfile index f9b9a78..e1a3105 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 2fb82ab..e0c58f4 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`.