先编辑DockerFile
基础镜像选的是 alpine
DockerFile内容如下 :
FROM alpine:latest
LABEL maintainer="me"
LABEL description="An environment with Boost C++ Libraries based on Alpine Linux."
ARG BOOST_VERSION=1.67.0
ARG BOOST_DIR=boost_1_67_0
ENV BOOST_VERSION ${BOOST_VERSION}
# Use bzip2-dev package for Boost IOStreams library support of zip and bzip2 formats
# Use openssl package for wget ssl_helper issue
RUN apk add --no-cache --virtual .build-dependencies \
openssl \
linux-headers \
build-base \
&& wget http://downloads.sourceforge