FROM drogonframework/drogon AS installer ENV CORE_ROOT=$IROOT/core WORKDIR $IROOT COPY . $CORE_ROOT WORKDIR $CORE_ROOT RUN ./build.sh FROM drogonframework/drogon COPY --from=installer /srv/core /srv/core EXPOSE 5000 ENTRYPOINT ["/srv/core"]