pleroma-docker/entrypoint.sh
sn0w 2acfbc8842
Migrate to alpine linux
wew that was easy
2019-01-10 19:05:46 +01:00

24 lines
276 B
Bash
Executable File

#!/bin/ash
# shellcheck shell=dash
set -e
set -x
if [ -n "$BUILDTIME" ]; then
mix local.rebar --force
mix local.hex --force
mix deps.get
mix compile
exit 0
fi
mix compile
# Migrate db
mix ecto.create
mix ecto.migrate
# Off we go!
exec mix phx.server