Utility image for building HTTP/2 services.
9.1K
Combines the nghttp2 image with a few utility libraries that are commonly used for building web services.
FROM sptrakesh/cpr as cpr
FROM sptrakesh/http-router as router
FROM sptrakesh/nghttp2 as base
ENV VERSION=1.1.0
COPY --from=cpr /opt/local /opt/local
COPY --from=router /opt/spt /opt/spt
WORKDIR /opt
RUN git clone https://github.com/sptrakesh/Turbo-Base64.git \
&& cd Turbo-Base64 \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/local \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=OFF \
-DBUILD_APP=OFF \
-S . -B build \
&& cmake --build build -j8 \
&& (cd build && make install)
WORKDIR /opt
RUN git clone https://github.com/Thalhammer/jwt-cpp.git \
&& cd jwt-cpp \
&& mkdir build && cd build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DJWT_BUILD_EXAMPLES=OFF \
-DCMAKE_INSTALL_PREFIX=/opt/local \
.. \
&& make -j8 \
&& make install
WORKDIR /opt
RUN git clone https://github.com/trusch/libbcrypt.git \
&& cd libbcrypt \
&& sed -e "s/^SET/#SET/g" -e "s/^INCLUDE/#INCLUDE/g" CMakeLists.txt > /tmp/CMakeLists.txt \
&& mv -f /tmp/CMakeLists.txt . \
&& mkdir build && cd build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=Off \
-DCMAKE_INSTALL_PREFIX=/opt/local \
-DCMAKE_INSTALL_LIBDIR=lib \
.. \
&& make -j8 \
&& make install
WORKDIR /opt
RUN git clone https://github.com/sptrakesh/cpp-otp.git \
&& cd cpp-otp \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/local -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -S . -B build \
&& cmake --build build --parallel \
&& (cd build; make install)
FROM sptrakesh/cppbase
MAINTAINER Rakesh Vidyadharan <[email protected]>
ENV VERSION=1.1.0
WORKDIR /opt
COPY --from=base /opt/local local
COPY --from=base /opt/spt /opt/spt
Content type
Image
Digest
sha256:ffac17065…
Size
234 MB
Last updated
about 2 months ago
docker pull sptrakesh/http-base