-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
71 lines (60 loc) · 1.63 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM rust:1.82.0-bookworm AS rln-builder
RUN git clone https://github.com/RGB-Tools/rgb-lightning-node \
--depth=1 --recurse-submodules --shallow-submodules
RUN cd rgb-lightning-node \
&& cargo install --locked --debug --path .
FROM python:3.12-slim-bookworm
WORKDIR /iris-wallet-desktop
# install poetry
RUN python3 -m pip install --no-cache-dir poetry
# install project dependencies
COPY poetry.lock pyproject.toml ./
RUN poetry install
# install dependencies
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
binutils file sudo wget \
libasound2 \
libatk1.0-0 \
libatomic1 \
libcairo-gobject2 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libegl1 \
libfontconfig1 \
libfuse2 \
libgdk-pixbuf-2.0-0 \
libgl1 \
libglib2.0-0 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libpulse0 \
libwayland-cursor0 \
libwayland-egl1 \
libxcb-cursor0 \
libxcb-icccm4 \
libxcb-keysyms1 \
libxcb-shape0 \
libxcb-xkb1 \
libxcomposite1 \
libxdamage1 \
libxi6 \
libxkbcommon-x11-0 \
libxkbcommon0 \
libxkbfile1 \
libxrandr2 \
libxrender1 \
libxtst6
# copy RLN from dedicated builder stage
RUN mkdir ln_node_binary
COPY --from=rln-builder /rgb-lightning-node/target/debug/rgb-lightning-node \
./ln_node_binary/
# copy project code
COPY . .
# setup the entrypoint
RUN chmod +x docker-entrypoint.sh
ENTRYPOINT ["./docker-entrypoint.sh"]