14 lines
307 B
Docker
14 lines
307 B
Docker
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
|
|
|