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 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 |
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
#!/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 |