mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
18 lines
792 B
Docker
18 lines
792 B
Docker
FROM ubuntu:latest
|
|
|
|
RUN apt-get update
|
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y curl cmake g++ build-essential python3 python3-pip python3-setuptools ninja-build git zlib1g-dev
|
|
RUN pip install numpy pybind11==2.6.2 PyYAML
|
|
# Setup Concrete
|
|
COPY --from=ghcr.io/zama-ai/concrete-api-env:latest /target/release /concrete/target/release
|
|
ENV CONCRETE_PROJECT=/concrete
|
|
# Setup LLVM
|
|
COPY /llvm-project /llvm-project
|
|
# Setup and build compiler
|
|
COPY /compiler /compiler
|
|
WORKDIR /compiler
|
|
RUN mkdir -p /build
|
|
RUN make BUILD_DIR=/build zamacompiler python-bindings
|
|
ENV PYTHONPATH "$PYTHONPATH:/build/tools/zamalang/python_packages/zamalang_core:/build/tools/zamalang/python_packages/zamalang_core/mlir/_mlir_libs/"
|
|
ENV PATH "$PATH:/build/bin"
|
|
ENV RT_LIB "/build/lib/libZamalangRuntime.so" |