1 | FROM python:3.9-slim |
2 |
|
3 |
|
4 | WORKDIR /build |
5 |
|
6 |
|
7 | RUN mkdir -p python binding binaries dist |
8 |
|
9 |
|
10 | COPY src/nostr-sdk/__init__.py python/src/nostr-sdk/ |
11 | COPY LICENSE python/ |
12 | COPY MANIFEST.in python/ |
13 | COPY pyproject.toml python/ |
14 | COPY README.md python/ |
15 | COPY requirements.txt python/ |
16 | COPY setup.py python/ |
17 |
|
18 |
|
19 | COPY buildwheel.sh . |
20 | RUN chmod +x buildwheel.sh |
21 |
|
22 |
|
23 | RUN pip install -r python/requirements.txt |
24 |
|
25 |
|
26 | RUN chmod -R 777 /build |
27 |
|
28 |
|
29 | ENTRYPOINT ["/build/buildwheel.sh"] |
30 |
|