Sign inSign up

sptrakesh/cppruntime

By sptrakesh

Updated 14 days ago

Base Alpine image to run statically linked C++ applications

Image
0

10K+

sptrakesh/cppruntime repository overview

Base Alpine image to run statically linked C++ applications (except system libraries such as libstdc++. libssl, libgcc_s, ...)

FROM alpine:latest as base

ENV LANG=en_US.utf8

RUN apk --no-cache upgrade \
  && apk add --no-cache cmake git vim loksh \
    ca-certificates zlib-dev openssl-dev \
    linux-headers build-base binutils-gold oniguruma-dev autoconf automake libtool

WORKDIR /opt
RUN git clone https://github.com/stedolan/jq.git \
  && cd jq \
  && autoreconf -fi \
  && ./configure --disable-maintainer-mode \
  && LDFLAGS=-all-static make -j8 \
  && make install

FROM alpine:latest
MAINTAINER Rakesh Vidyadharan <[email protected]>

ENV LANG=en_US.utf8

RUN apk --no-cache upgrade \
  && apk add --no-cache libstdc++ snappy loksh oniguruma

COPY --from=base /opt/jq/jq /usr/bin/

Tag summary

Content type

Image

Digest

sha256:a028e48a5

Size

8.3 MB

Last updated

14 days ago

docker pull sptrakesh/cppruntime