Skip to content

Instantly share code, notes, and snippets.

@shmink
Created April 3, 2020 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shmink/d4812d9e29567895eea611bfc8a21278 to your computer and use it in GitHub Desktop.
Save shmink/d4812d9e29567895eea611bfc8a21278 to your computer and use it in GitHub Desktop.
Elixir dockerfile
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