123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- FROM ubuntu:22.04
- ENV DEBIAN_FRONTEND=noninteractive
- RUN apt-get update && apt-get install -y \
- git \
- cmake \
- build-essential \
- python3 \
- python3-dev \
- python3-pip \
- python3-venv \
- sudo \
- && apt-get clean && rm -rf /var/lib/apt/lists/*
- RUN pip3 install "pybind11[global]"
-
- RUN python3 -m pip install --no-cache-dir jupyterlab
- RUN git clone https://github.com/openfheorg/openfhe-development.git \
- && cd openfhe-development \
- && mkdir build \
- && cd build \
- && cmake -DBUILD_UNITTESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARKS=OFF .. \
- && make -j$(nproc) \
- && make install
- ENV LD_LIBRARY_PATH=/usr/local/lib:${LD_LIBRARY_PATH}
- RUN git clone https://github.com/openfheorg/openfhe-python.git \
- && cd openfhe-python \
- && mkdir build \
- && cd build \
- && cmake .. \
- && make -j$(nproc) \
- && make install
- EXPOSE 8888
- WORKDIR /workspace
- CMD ["jupyter-lab", "--ip=0.0.0.0", "--no-browser", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.allow_origin='*'", "--NotebookApp.password=''", "--NotebookApp.password_required=False"]
|