mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 08:31:52 +08:00
- 移除公共 RustDesk ID 服务器 (用户需自行配置) - 移除公共 TURN 服务器 (仅保留 Google STUN) - 清理废弃代码: PublicServerInfo, is_using_public_server 等 - 更新前端 UI 和国际化文本 - 重新生成 TypeScript 类型 破坏性变更: 不再提供内置公共服务器。用户必须配置自己的 RustDesk 服务器和 TURN 服务器才能在生产环境中使用。
45 lines
1.3 KiB
Docker
45 lines
1.3 KiB
Docker
# One-KVM Runtime Image
|
|
# This Dockerfile only packages pre-compiled binaries (no compilation)
|
|
# Used after cross-compiling with `cross build`
|
|
|
|
ARG TARGETPLATFORM=linux/amd64
|
|
|
|
FROM debian:12-slim
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
# Install runtime dependencies in a single layer
|
|
# Static linked: FFmpeg core, libyuv, libvpx, libjpeg-turbo
|
|
# Dynamic linked: hardware acceleration drivers, GPL codecs (x264/x265)
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
# Core runtime (all platforms)
|
|
libasound2 \
|
|
libv4l-0 \
|
|
libudev1 \
|
|
libdrm2 \
|
|
libopus0 \
|
|
ca-certificates \
|
|
# GPL codecs (must be dynamic for license compliance)
|
|
libx264-164 \
|
|
libx265-199 && \
|
|
# Platform-specific hardware acceleration
|
|
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
|
apt-get install -y --no-install-recommends \
|
|
libva2 libva-drm2 libva-x11-2 libx11-6 libxcb1 libmfx1; \
|
|
fi && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
mkdir -p /etc/one-kvm/ventoy
|
|
|
|
# Copy init script
|
|
COPY --chmod=755 init.sh /init.sh
|
|
|
|
# Copy binaries (these are placed by the build script)
|
|
COPY --chmod=755 one-kvm ttyd gostc easytier-core /usr/bin/
|
|
|
|
# Copy ventoy resources if they exist
|
|
COPY ventoy/ /etc/one-kvm/ventoy/
|
|
|
|
# Entrypoint
|
|
CMD ["/init.sh"]
|