-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathDockerfile.ubuntu
More file actions
64 lines (56 loc) · 1.66 KB
/
Copy pathDockerfile.ubuntu
File metadata and controls
64 lines (56 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
ARG os_release="latest"
ARG emp_image="fbpcf/ubuntu-emp:0.2.3"
ARG aws_image="fbpcf/ubuntu-aws-s3-core:1.8.177"
ARG folly_image="fbpcf/ubuntu-folly:2021.03.29.00"
ARG gcp_image="fbpcf/ubuntu-gcp-cloud-cpp:1.32.1"
ARG cmake_flags=""
FROM ${emp_image} as emp
FROM ${aws_image} as aws
FROM ${folly_image} as folly
FROM ${gcp_image} as gcp
FROM ubuntu:${os_release} as dev
# Required Packages for fbpcf
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
ccache \
cmake \
git \
libc-ares-dev \
libboost-dev \
libboost-context-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libboost-regex-dev \
libboost-system-dev \
libcurl4-openssl-dev \
libdouble-conversion-dev \
libevent-dev \
libgflags-dev \
libgmp-dev \
libgoogle-glog-dev \
libre2-dev \
libssl-dev \
zlib1g-dev
RUN mkdir -p /root/build/fbpcf
WORKDIR /root/build/fbpcf
# Copy build dependencies from other docker images
COPY --from=emp /usr/local/. /usr/local/.
COPY --from=aws /usr/local/. /usr/local/.
COPY --from=folly /usr/local/. /usr/local/.
COPY --from=gcp /usr/local/. /usr/local/.
# fbpcf build and install
COPY docker/CMakeLists.txt .
COPY docker/cmake/ ./cmake
COPY fbpcf/ ./fbpcf
COPY example/ ./example
# Link all libraries post-install
RUN ldconfig
RUN cmake . -DTHREADING=ON -DEMP_USE_RANDOM_DEVICE=ON $cmake_flags
RUN make && make install
CMD ["/bin/bash"]