Created
April 3, 2020 00:28
-
-
Save shmink/d4812d9e29567895eea611bfc8a21278 to your computer and use it in GitHub Desktop.
Elixir dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM elixir:1.10-alpine | |
ENV MIX_ENV=prod | |
COPY lib ./lib | |
COPY mix.exs . | |
COPY mix.lock . | |
RUN mix local.rebar --force \ | |
&& mix local.hex --force \ | |
&& mix deps.get \ | |
&& mix release | |
RUN apk add --no-cache --update bash openssl | |
CMD ["_build/prod/rel/my-app/bin/my-app", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment