ARG BUILD_BASE_IMAGE=alpine:latest FROM ${BUILD_BASE_IMAGE} ARG BUILD_TAG ARG BUILD_MAINTAINER ARG BUILD_TZ ARG BUILD_APP_NAME ARG BUILD_APP_USER ARG ENV_TZ LABEL maintainer="${BUILD_MAINTAINER}" LABEL org.opencontainers.image.title="${BUILD_APP_NAME}" ENV TZ=${ENV_TZ} RUN apt update && \ apt install -y git build-essential cmake curl ninja-build ccache git libcurl4-openssl-dev libevent-dev ruby libtbb-dev && \ git clone ${BUILD_APP_GIT} /app && \ cd /app && \ git submodule update --init --recursive && \ cd ext/restinio && \ gem install Mxx_ru && \ mxxruexternals && \ cd ../.. && \ ./build.sh -c gcc -b release && \ apt remove -y --purge git build-essential cmake curl ninja-build ccache git libcurl4-openssl-dev libevent-dev ruby libtbb-dev WORKDIR /app USER ${BUILD_APP_USER} CMD ["init"]