forked from SnosMe/awakened-poe-trade
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (37 loc) · 929 Bytes
/
Dockerfile
File metadata and controls
46 lines (37 loc) · 929 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
37
38
39
40
41
42
43
44
45
46
# Multi-stage build for Awakened PoE Trade
FROM node:22-bookworm AS builder
# Install system dependencies needed for electron-builder
RUN apt-get update && apt-get install -y \
libgtk-3-0 \
libnotify4 \
libnss3 \
libxss1 \
libxtst6 \
xdg-utils \
libatspi2.0-0 \
libdrm2 \
libgbm1 \
libxcb-dri3-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /build
# Copy package files
COPY renderer/package*.json ./renderer/
COPY main/package*.json ./main/
# Install dependencies
RUN cd renderer && npm ci
RUN cd main && npm ci
# Copy source code
COPY renderer ./renderer
COPY main ./main
COPY ipc ./ipc
# Build renderer
WORKDIR /build/renderer
RUN npm run make-index-files && npm run build
# Build main
WORKDIR /build/main
RUN npm run build
# Package application
RUN npm run package -- --linux AppImage
# Final stage - just the artifacts
FROM scratch AS export
COPY --from=builder /build/dist /