-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile.armv7
32 lines (29 loc) · 1.27 KB
/
Dockerfile.armv7
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 armhf
RUN apt update && apt upgrade -y
RUN apt install -y --no-install-recommends \
g++-arm-linux-gnueabihf \
libc6-dev-armhf-cross \
libssl-dev:armhf \
libwebkit2gtk-4.0-dev:armhf \
build-essential \
curl:armhf \
wget:armhf \
libgtk-3-dev:armhf \
patchelf:armhf \
librsvg2-dev:armhf \
pkg-config
RUN rustup target add armv7-unknown-linux-gnueabihf
RUN rustup toolchain install stable-armv7-unknown-linux-gnueabihf
RUN cargo install --version 1.6.2 tauri-cli
WORKDIR /app
ENV CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc \
CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc \
CXX_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-g++ \
PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig \
PKG_CONFIG_ALLOW_CROSS=1
WORKDIR /app/src-tauri
CMD ["cargo" ,"tauri", "build", "-b", "deb", "--target", "armv7-unknown-linux-gnueabihf"]