fix: set correct internal path for whisperx-env

This commit is contained in:
rishikanthc
2025-12-16 18:38:51 -08:00
parent f99087b2bd
commit 88166cbf6c
4 changed files with 16 additions and 12 deletions

View File

@@ -52,13 +52,14 @@ RUN mkdir -p /out/bin/cli \
FROM python:3.11-slim AS runtime
ENV PYTHONUNBUFFERED=1 \
HOST=0.0.0.0 \
PORT=8080 \
DATABASE_PATH=/app/data/scriberr.db \
UPLOAD_DIR=/app/data/uploads \
APP_ENV=production \
PUID=1000 \
PGID=1000
HOST=0.0.0.0 \
PORT=8080 \
DATABASE_PATH=/app/data/scriberr.db \
UPLOAD_DIR=/app/data/uploads \
WHISPERX_ENV=/app/whisperx-env \
APP_ENV=production \
PUID=1000 \
PGID=1000
WORKDIR /app
@@ -66,8 +67,8 @@ WORKDIR /app
# Build tools: gcc, g++, make for compiling Python C extensions (needed for NeMo dependencies like texterrors)
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl ca-certificates ffmpeg git gosu \
build-essential gcc g++ make python3-dev unzip\
curl ca-certificates ffmpeg git gosu \
build-essential gcc g++ make python3-dev unzip\
&& rm -rf /var/lib/apt/lists/*
# Install uv (fast Python package manager) directly to system PATH

View File

@@ -54,6 +54,7 @@ ENV PYTHONUNBUFFERED=1 \
PORT=8080 \
DATABASE_PATH=/app/data/scriberr.db \
UPLOAD_DIR=/app/data/uploads \
WHISPERX_ENV=/app/whisperx-env \
APP_ENV=production \
PUID=1000 \
PGID=1000 \

View File

@@ -6,6 +6,7 @@ services:
- "8080:8080"
volumes:
- scriberr_data:/app/data
- env_data:/app/whisperx-env
restart: unless-stopped
deploy:
resources:
@@ -25,3 +26,4 @@ services:
volumes:
scriberr_data: {}
env_data: {}

View File

@@ -5,6 +5,7 @@ services:
- "8080:8080"
volumes:
- scriberr_data:/app/data
- env_data:/app/whisperx-env
environment:
# Security: already set in container, but can be overridden
- APP_ENV=production
@@ -13,6 +14,5 @@ services:
restart: unless-stopped
volumes:
scriberr_data:
scriberr_data: {}
env_data: {}