Browse Source

Scripting fixup

pull/6/head
sn0w 4 years ago
parent
commit
b44d428493
  1. 3
      Dockerfile
  2. 9
      entrypoint.sh

3
Dockerfile

@ -72,6 +72,3 @@ RUN \ @@ -72,6 +72,3 @@ RUN \
cp ./config/dev.exs ./config/prod.secret.exs \
&& BUILDTIME=1 /entrypoint.sh \
&& rm ./config/prod.secret.exs
# Insert overrides
COPY --chown=pleroma:pleroma ./custom.d /home/pleroma/pleroma

9
entrypoint.sh

@ -4,13 +4,16 @@ @@ -4,13 +4,16 @@
set -e
if [ -n "$BUILDTIME" ]; then
echo "#> Preparing compilation..."
echo "#> Getting rebar..."
mix local.rebar --force
echo "#> Getting hex..."
mix local.hex --force
echo "#> Compiling..."
echo "#> Getting dependencies..."
mix deps.get
echo "#> Precompiling..."
mix compile
exit 0
fi

Loading…
Cancel
Save