python/Dockerfile

1
FROM python:3.9-slim
2

3
# Set up working directory
4
WORKDIR /build
5

6
# Create directories for mounting volumes
7
RUN mkdir -p python binding binaries dist
8

9
# Copy source
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
# Copy the build script
19
COPY buildwheel.sh .
20
RUN chmod +x buildwheel.sh
21

22
# Install Python build tools
23
RUN pip install -r python/requirements.txt
24

25
# Update permissions
26
RUN chmod -R 777 /build
27

28
# Set the entrypoint to our build script
29
ENTRYPOINT ["/build/buildwheel.sh"]
30

gitworkshop.dev logo GitWorkshop.dev