| 12345678910111213141516171819202122232425262728293031323334353637 | ARG ELIXIR="1.14.2"ARG ERLANG="25.1.2"ARG ALPINE="3.16.2"ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR}-erlang-${ERLANG}-alpine-${ALPINE}"ARG RUNNER_IMAGE="alpine:${ALPINE}"FROM ${BUILDER_IMAGE} AS builderARG MIX_ENV="prod"RUN mix local.hex --force && \    mix local.rebar --forceCOPY mix.exs mix.lock ./RUN mix deps.get --force --only prodCOPY config ./configRUN mix deps.compileCOPY lib ./libRUN mix release --force --path /export# start a new build stage so that the final image will only contain# the compiled release and other runtime necessitiesFROM ${RUNNER_IMAGE}RUN apk add --no-cache libstdc++ openssl ncurses-libsCOPY --from=builder /export /optEXPOSE 8080ENTRYPOINT ["/opt/bin/framework_benchmarks"]CMD ["start"]
 |