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