FROM hexpm/elixir:1.13.4-erlang-24.3.4.5-debian-bullseye-20220801

RUN mix local.hex --force \
 && mix local.rebar --force

RUN apt-get update \
 && apt-get install -y --no-install-recommends \
    g++ \
    git \
    make \
    npm \
    openssh-client

ENV MIX_ENV=prod

COPY build-scenarios /usr/local/bin/build-scenarios
