forked from BitcoinMechanic/specter-desktop-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 1.02 KB
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
# ---------- BUILD STAGE ----------
FROM python:3.11-slim AS builder
RUN apt update && apt install -y \
git build-essential \
libffi-dev libssl-dev libjpeg-dev zlib1g-dev
WORKDIR /opt
RUN git clone --branch v2.1.7 --depth 1 https://github.com/cryptoadvance/specter-desktop.git
WORKDIR /opt/specter-desktop
RUN pip install --no-cache-dir --upgrade "pip<26" "setuptools<82" wheel \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir .
# ---------- FINAL STAGE ----------
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
RUN apt update && apt install -y \
curl jq libusb-1.0-0 \
&& curl -sS https://webi.sh/yq | sh \
&& mv /root/.local/bin/yq /usr/local/bin/yq \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# nur Python packages rüberkopieren
COPY --from=builder /usr/local/lib/python3.11 /usr/local/lib/python3.11
COPY --from=builder /usr/local/bin /usr/local/bin
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh