mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-28 06:46:25 +00:00
fix: set correct internal path for whisperx-env
This commit is contained in:
19
Dockerfile
19
Dockerfile
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user