You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
652 B
Docker

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 用于在 x86_64 上打出 amd64 + arm64 的 .deb与 build-linux-deb-all.sh 一致)。
# 基底使用 Ubuntu 20.04focal降低 glibc 版本以兼容麒麟 V10。
# 构建:在仓库根目录执行 docker build -f scripts/docker/Dockerfile -t tauri-linux-deb:20.04 .
# 勿在纯 arm64 宿主机上用本镜像交叉打 amd64需另做镜像或仅用真机构建
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive \
RUSTUP_HOME=/opt/rustup \
CARGO_HOME=/opt/cargo
COPY scripts/docker/install-build-deps.sh /tmp/install-build-deps.sh
RUN chmod +x /tmp/install-build-deps.sh && /tmp/install-build-deps.sh
WORKDIR /work