-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile.extensions-base.x86_64
33 lines (29 loc) · 1.32 KB
/
Dockerfile.extensions-base.x86_64
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
FROM amazon/aws-lambda-nodejs:18 as builder
# Install dependencies
RUN yum update -y && \
yum install git tar zip ninja-build make gcc-c++ python-pip glibc-devel libstdc++-devel wget flex \
java-1.8.0-openjdk zip maven unixODBC-devel glibc-devel readline-devel libcurl-devel expat-devel bison \
gettext unzip libffi-devel curl zlib-devel libuuid-devel pulseaudio-libs-devel openssh python-pip python3 \
cpp.x86_64 sqlite-devel.x86_64 libtiff.x86_64 kernel-headers perl-IPC-Cmd perl-Data-Dumper openssl11 openssl11-devel -y && \
yum remove cmake -y
# Install recent cmake
RUN cd /tmp && \
wget https://github.com/Kitware/CMake/releases/download/v3.27.6/cmake-3.27.6.tar.gz && \
tar -xvzf cmake-3.27.6.tar.gz && \
cd cmake-3.27.6 && \
export PATH="OPENSSL_ROOT_DIR=/usr/local/ssl:$PATH" && \
./bootstrap && \
CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) make && \
make install
# Install vcpkg
RUN mkdir -p /tmp/from-git && \
cd /tmp/from-git && \
git clone https://github.com/Microsoft/vcpkg.git && \
cd vcpkg && \
git fetch --all --tags && \
git checkout 5e5d0e1cd7785623065e77eff011afdeec1a3574 && \
./bootstrap-vcpkg.sh -disableMetrics
# Prepare
RUN ln -s /usr/bin/ninja-build /usr/bin/ninja && \
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:/tmp/from-git/vcpkg:$PATH" && \
vcpkg install openssl