diff --git a/Dockerfile b/Dockerfile index 3d33bcb..55867ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG BUILD_BASE_IMAGE=alpine:latest -FROM ${BUILD_BASE_IMAGE} +FROM ${BUILD_BASE_IMAGE} AS builder ARG BUILD_TAG ARG BUILD_MAINTAINER @@ -23,11 +23,16 @@ RUN apt update && \ 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 + ./build.sh -c gcc -b release + + +ARG BUILD_BASE_IMAGE=alpine:latest +FROM ${BUILD_BASE_IMAGE} + +COPY --from=builder /app/hibp/build/gcc/release/* /usr/local/bin/ WORKDIR /app USER ${BUILD_APP_USER} -CMD ["init"] \ No newline at end of file +CMD ["init"]