XiaoBai1221 commited on
Commit
2287bd8
·
1 Parent(s): 69fb140

1202_Latest

Browse files
Files changed (2) hide show
  1. Dockerfile +10 -0
  2. requirements.txt +3 -0
Dockerfile CHANGED
@@ -9,6 +9,7 @@ ENV PIP_NO_CACHE_DIR=1 \
9
 
10
  WORKDIR /app
11
 
 
12
  COPY requirements.txt ./
13
  RUN apt-get update \
14
  && apt-get install -y --no-install-recommends \
@@ -23,6 +24,9 @@ RUN apt-get update \
23
  ffmpeg \
24
  libasound2-dev \
25
  portaudio19-dev \
 
 
 
26
  && pip install --no-cache-dir --prefer-binary -r requirements.txt \
27
  && apt-get clean \
28
  && rm -rf /var/lib/apt/lists/*
@@ -38,6 +42,12 @@ RUN mkdir -p ${XDG_CACHE_HOME}/fontconfig \
38
 
39
  COPY . .
40
 
 
 
 
 
 
 
41
  ENV PORT=7860
42
 
43
  CMD ["bash", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]
 
9
 
10
  WORKDIR /app
11
 
12
+ # 安裝系統依賴(包含 Node.js)
13
  COPY requirements.txt ./
14
  RUN apt-get update \
15
  && apt-get install -y --no-install-recommends \
 
24
  ffmpeg \
25
  libasound2-dev \
26
  portaudio19-dev \
27
+ curl \
28
+ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
29
+ && apt-get install -y nodejs \
30
  && pip install --no-cache-dir --prefer-binary -r requirements.txt \
31
  && apt-get clean \
32
  && rm -rf /var/lib/apt/lists/*
 
42
 
43
  COPY . .
44
 
45
+ # Build Next.js 前端
46
+ RUN cd bloom-ware-login \
47
+ && npm install \
48
+ && npm run build \
49
+ && cd ..
50
+
51
  ENV PORT=7860
52
 
53
  CMD ["bash", "-lc", "uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}"]
requirements.txt CHANGED
@@ -37,3 +37,6 @@ soundfile>=0.12.0
37
  noisereduce>=0.4.3
38
  pyaudio
39
  transformers
 
 
 
 
37
  noisereduce>=0.4.3
38
  pyaudio
39
  transformers
40
+
41
+ # Voice authentication (speaker recognition)
42
+ speechbrain>=1.0.0