diff --git a/Dockerfile b/Dockerfile index 0844f18..8324355 100644 --- a/Dockerfile +++ b/Dockerfile @@ -110,7 +110,14 @@ RUN download-ggml-model.sh base.en /models && \ download-ggml-model.sh small.en /models # Download and unzip PocketBase -ADD https://github.com/pocketbase/pocketbase/releases/download/v${POCKETBASE_VERSION}/pocketbase_${POCKETBASE_VERSION}_linux_amd64.zip /tmp/pb.zip +# Dynamically set the URL based on the architecture +RUN if [ "$TARGETARCH" = "arm64" ]; then \ + ARCH="arm64"; \ + else \ + ARCH="amd64"; \ + fi && \ + curl -L "https://github.com/pocketbase/pocketbase/releases/download/v${POCKETBASE_VERSION}/pocketbase_${POCKETBASE_VERSION}_linux_${ARCH}.zip" -o /tmp/pb.zip + RUN unzip /tmp/pb.zip pocketbase -d /usr/local/bin/ && rm /tmp/pb.zip # Set the working directory back to /app diff --git a/README.md b/README.md index 0102f6a..18b7ea6 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Under the directory or volume you are mapping to `/scriberr`, please create the ```yaml services: scriberr: - image: ghcr.io/rishikanthc/scriberr:beta-0.1 + image: ghcr.io/rishikanthc/scriberr:beta-0.2 ports: - "3000:3000" - "8080:8080" #Optionally expose DB UI