## Stage 1 : build binary FROM crystallang/crystal:1.4.1 AS builder COPY . /app WORKDIR /app RUN shards build ## Stage 2 : include binary into final image FROM python:3.7-bullseye AS runner RUN apt-get update \ && apt-get -yq install \ gettext \ jq \ libevent-core-2.1-7 \ zip \ && rm -rf /var/lib/apt/lists/* RUN pip install \ aodhclient \ cinder \ gnocchiclient \ osc-placement \ panko \ python-barbicanclient \ python-ceilometerclient \ python-cloudkittyclient \ python-designateclient \ python-octaviaclient \ python-openstackclient # RUN wget https://github.com/sapcc/cyclone/releases/download/v0.1.28/cyclone \ # -O /usr/bin/cyclone \ # && chmod +x /usr/bin/cyclone COPY --from=builder /app/bin/arkisto /usr/bin/arkisto CMD ["/bin/bash"]