Skip to content

Instantly share code, notes, and snippets.

@hfingler
Created January 30, 2020 19:09
Show Gist options
  • Save hfingler/f5597511af0ddf9d0b8ba4ca82bdf781 to your computer and use it in GitHub Desktop.
Save hfingler/f5597511af0ddf9d0b8ba4ca82bdf781 to your computer and use it in GitHub Desktop.
Alpine container to build aws-sdk-cpp
#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