-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (38 loc) · 1.14 KB
/
Dockerfile
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM rust:1.78.0-bookworm
WORKDIR /usr/app/raspirus
COPY . .
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean && apt-get update && apt-get upgrade -y
RUN apt-get update && apt-get install -y libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev\
npm \
cargo
# Add architecture
#RUN dpkg --add-architecture arm64
#RUN apt-get update
# RUN apt-get install -y build-essential:arm64 python3:arm64 build-essential:arm64 python3-mako:arm64 python3-markdown:arm64
#RUN apt-get install -y libwebkit2gtk-4.1-dev:arm64 libssl-dev:arm64
# Add Rust target
RUN rustup target add armv7-unknown-linux-gnueabihf
# Use latest npm version
RUN npm install -g npm@latest
RUN npm install -g nodejs@latest
# Perform npm install
RUN npm install
# Create the out directory
RUN mkdir out
RUN rustup default nightly
# Install app deps
RUN cargo install --path src-tauri/
RUN cargo install tauri-cli --locked
# Set environment variables
ENV PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu/
# Build app
RUN cargo tauri build --target aarch64-unknown-linux-gnu -b deb