-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (40 loc) · 1.02 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
49
50
51
52
53
# Run `make build-debian-bookworm-18` to build this image
FROM rust:bookworm
# Install base utils
RUN apt-get update
RUN apt-get install -y \
curl \
psmisc
# Install Node.js
RUN curl -fsSL "https://deb.nodesource.com/setup_18.x" | bash -
RUN apt-get install -y nodejs
# Install Yarn
RUN corepack enable
# Install Tarpaulin
RUN cargo install cargo-tarpaulin
# Install Tauri dependencies
# https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-linux
RUN apt-get install -y \
libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev
# Install tauri-driver dependencies
RUN apt-get install -y \
webkit2gtk-4.0-dev \
webkit2gtk-driver \
xvfb
# Whatever dependencies
RUN apt-get install -y file
# Install tauri-driver
# https://tauri.app/v1/guides/testing/webdriver/introduction#system-dependencies
RUN cargo install tauri-driver
ENV DISPLAY=host.docker.internal:0.0
WORKDIR /app
COPY . .
#RUN npm install
#RUN cd src-tauri && cargo build