FROM hexpm/elixir:1.14.3-erlang-25.3-debian-bullseye-20230227

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
