Created
January 30, 2020 19:09
-
-
Save hfingler/f5597511af0ddf9d0b8ba4ca82bdf781 to your computer and use it in GitHub Desktop.
Alpine container to build aws-sdk-cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#save this to Dockerfile.x86_64 | |
#to build, run something like: $docker build --rm -t alpine-awssdk:latest -f Dockerfile.x86_64 . | |
FROM alpine:edge | |
RUN apk add git emacs g++ make cmake zlib-dev openssl-dev curl-dev perl nghttp2-static boost-dev build-base | |
RUN cd / && git clone https://github.com/aws/aws-sdk-cpp.git && \ | |
mkdir -p sdkbuild && cd sdkbuild && cmake -DBUILD_ONLY="s3;transfer" -DCMAKE_INSTALL_PREFIX=/musl \ | |
-DBUILD_SHARED_LIBS=OFF -DENABLE_TESTING=OFF -DFORCE_SHARED_CRT=OFF \ | |
../aws-sdk-cpp && make install && cd .. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment