-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile.arm64
32 lines (29 loc) · 1.24 KB
/
Dockerfile.arm64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: Copyright (c) 2022-2024 trobonox <[email protected]>, Vexcited
#
# SPDX-License-Identifier: Apache-2.0
FROM rust:bullseye
RUN dpkg --add-architecture arm64
RUN apt update && apt upgrade -y
RUN apt install -y --no-install-recommends \
g++-aarch64-linux-gnu \
libc6-dev-arm64-cross \
libssl-dev:arm64 \
libwebkit2gtk-4.0-dev:arm64 \
build-essential \
curl:arm64 \
wget:arm64 \
libgtk-3-dev:arm64 \
patchelf:arm64 \
librsvg2-dev:arm64 \
pkg-config
RUN rustup target add aarch64-unknown-linux-gnu
RUN rustup toolchain install stable-aarch64-unknown-linux-gnu
RUN cargo install --version 1.6.2 tauri-cli
WORKDIR /app
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc \
CC_aarch64-unknown-linux-gnu=aarch64-linux-gnu-gcc \
CXX_aarch64-unknown-linux-gnu=aarch64-linux-gnu-g++ \
PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig \
PKG_CONFIG_ALLOW_CROSS=1
WORKDIR /app/src-tauri
CMD ["cargo" ,"tauri", "build", "-b", "deb", "--target", "aarch64-unknown-linux-gnu"]