-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (29 loc) · 717 Bytes
/
Dockerfile
File metadata and controls
36 lines (29 loc) · 717 Bytes
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
FROM ubuntu:22.04
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
wget \
file \
libwebkit2gtk-4.0-dev \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
build-essential \
nodejs \
npm
# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
# Set working directory
WORKDIR /app
# Copy project
COPY . .
# Build frontend
WORKDIR /app/wichain-backend/frontend
RUN npm install && npm run build
# Build Tauri
WORKDIR /app/wichain-backend/src-tauri
RUN cargo tauri build
# Output location
RUN echo "Build complete! Artifacts in target/release/bundle/"