-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from alext-w:gmpy2_port
PiperOrigin-RevId: 623177363
- Loading branch information
Showing
22 changed files
with
723 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
# Install latest debian image | ||
FROM debian:latest | ||
# Install bookworm debian image | ||
FROM debian:bookworm | ||
|
||
# Create user | ||
RUN useradd -ms /bin/bash paranoid-user | ||
|
||
# Update Debian repository | ||
RUN apt update && apt install -y python3 python3-pip python3-pybind11 python3-fpylll libgmp-dev protobuf-compiler | ||
RUN apt update && apt install -y python3 python3-pip python3-pybind11 python3-fpylll python3-gmpy2 protobuf-compiler | ||
|
||
# Copy necessary files | ||
COPY ./ /home/paranoid-user/ | ||
COPY --chown=paranoid-user ./ /home/paranoid-user/ | ||
|
||
# Install package using pip | ||
USER paranoid-user | ||
WORKDIR /home/paranoid-user | ||
RUN python3 -m pip install . | ||
# PEP668 is not important in a container, thus use --break-system-packages | ||
RUN python3 -m pip install --break-system-packages . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/build/ | ||
__pycache__/ | ||
*_pb2.py | ||
*.egg-info/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.