代码初始化
This commit is contained in:
@@ -27,7 +27,12 @@ RUN go build -ldflags="-s -w" -o main ./main.go
|
||||
# 阶段2: 运行
|
||||
FROM alpine:3.19
|
||||
|
||||
RUN apk add --no-cache ca-certificates tzdata
|
||||
# 安装运行时依赖: ca-certificates(HTTPS), tzdata(时区), ffmpeg(音视频处理)
|
||||
RUN apk add --no-cache ca-certificates tzdata ffmpeg bash
|
||||
# 安装 Python3 和 pip(用于 whisper 语音识别)
|
||||
RUN apk add --no-cache python3 py3-pip && \
|
||||
pip3 install --no-cache-dir --break-system-packages openai-whisper 2>/dev/null || \
|
||||
pip3 install --no-cache-dir openai-whisper
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
Reference in New Issue
Block a user