Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile.1_14_alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM elixir:1.14-alpine

WORKDIR /opt

COPY ./config ./config
COPY ./lib ./lib
COPY ./mix.exs .
COPY ./mix.lock .

ENV MIX_ENV=prod

RUN mix local.rebar --force
RUN mix local.hex --force
RUN apk add --no-cache build-base

RUN mix deps.get
RUN mix deps.compile
RUN mix release

ENTRYPOINT ["/opt/_build/prod/rel/origin_simulator/bin/origin_simulator"]
CMD ["start"]