opentelemetry-erlang-contrib/examples/basic_elixir/Dockerfile

14 lines
307 B
Docker
Raw Normal View History

FROM elixir:1.9-alpine as builder
RUN mix local.hex --force && mix local.rebar --force
WORKDIR /app
COPY . /app
RUN mix deps.get
RUN MIX_ENV=prod mix release
FROM alpine:latest as app
RUN apk add bash openssl
WORKDIR /app
COPY --from=builder /app/_build/prod/rel/basic_elixir .
CMD bin/basic_elixir start