Skip to content

Instantly share code, notes, and snippets.

FROM hexpm/elixir:1.11.2-erlang-23.1.2-alpine-3.12.1 as build
# install build dependencies
RUN apk add --update git build-base npm nodejs python3
# prepare build dir
RUN mkdir /app
WORKDIR /app
# install hex + rebar
#!/bin/sh
# Docker entrypoint script.
# run migration
POOL=2 ./bin/<YOUR_APP_NAME> eval "<YOUR_APP_NAME>.Release.migrate"
# start application
./bin/<YOUR_APP_NAME> start