mirror of
https://github.com/luxfhe/examples.git
synced 2026-10-30 18:13:15 +00:00
ML examples: - credit_scoring: Credit risk prediction with HMEQ data - disease_prediction: Healthcare ML on encrypted records - cifar: Encrypted image classification - federated_learning: Distributed FHE training - hybrid_model: Mixed FHE/plaintext inference Deployment: - breast_cancer: Cancer detection API - sentiment_analysis: Encrypted NLP - server: FHE inference server Blockchain: - hardhat-template: Solidity + FHE - react-template: Full dApp with FHE
24 lines
551 B
Docker
24 lines
551 B
Docker
ARG CML_VER=v1.8.0
|
|
FROM zamafhe/concrete-ml:${CML_VER}
|
|
WORKDIR /project
|
|
|
|
# Add a non-root user and group
|
|
RUN groupadd -g 10001 grp02 && \
|
|
useradd -u 10000 -g grp02 usr01 && \
|
|
chown -R usr01:grp02 /project
|
|
|
|
COPY requirements.txt requirements.txt
|
|
#RUN python -m pip install torchvision==0.14.1 --no-deps
|
|
RUN python -m pip install -r requirements.txt
|
|
RUN python -m pip install requests
|
|
|
|
COPY models/ models/
|
|
COPY experiments/ experiments/
|
|
COPY compile.py compile.py
|
|
|
|
|
|
# Switch to the non-root user
|
|
USER usr01:grp02
|
|
|
|
ENTRYPOINT python compile.py
|