mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
Docker images were missing /usr/libexec/qmi-proxy, so QMI Proxy mode could not start inside the container. Install Alpine libqmi in the runtime base and the source Dockerfiles. Do not run qmi-proxy --version at build time; that binary is a daemon and hangs the image build. Also log the selected IMS inner address family for VoWiFi diagnostics. Based on PR #4.
30 lines
959 B
Docker
30 lines
959 B
Docker
# 运行时底包:录音库和证书只在这里装一次。发版镜像只 COPY 已经打好的二进制。
|
||
FROM alpine:3.24
|
||
WORKDIR /app
|
||
|
||
# ca-certificates / tzdata:HTTPS 和时区
|
||
# opencore-amr / vo-amrwbenc:AMR / AMR-WB
|
||
# lame-libs:MP3 录音
|
||
# psmisc:fuser,释放串口
|
||
# gcompat:UPX 压缩后的 Go 二进制在 musl 上需要
|
||
# libqmi:/usr/libexec/qmi-proxy,容器里走 QMI Proxy 模式需要
|
||
RUN apk add --no-cache \
|
||
ca-certificates \
|
||
gcompat \
|
||
lame-libs \
|
||
libqmi \
|
||
opencore-amr \
|
||
psmisc \
|
||
tzdata \
|
||
vo-amrwbenc && \
|
||
test -e /usr/lib/libopencore-amrnb.so.0 && \
|
||
test -e /usr/lib/libopencore-amrwb.so.0 && \
|
||
test -e /usr/lib/libvo-amrwbenc.so.0 && \
|
||
test -e /usr/lib/libmp3lame.so.0 && \
|
||
test -x /usr/libexec/qmi-proxy && \
|
||
mkdir -p /app/config /app/data /app/logs
|
||
|
||
EXPOSE 7575/tcp 7576/tcp 7580/udp
|
||
ENV CONFIG_PATH=/app/config/config.yaml
|
||
ENV TZ=Asia/Shanghai
|