From 37ea5207186aeef60725214c01f4f2c8d062e9c1 Mon Sep 17 00:00:00 2001 From: eater <=@eater.me> Date: Tue, 9 Jul 2019 14:33:07 +0200 Subject: [PATCH] pleroma: add compile script, which also unlocks tzdata --- pleroma/Dockerfile | 2 +- pleroma/files/compile-pleroma | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 pleroma/files/compile-pleroma diff --git a/pleroma/Dockerfile b/pleroma/Dockerfile index 0e048c6..81d9670 100644 --- a/pleroma/Dockerfile +++ b/pleroma/Dockerfile @@ -5,5 +5,5 @@ ENV MIX_ENV=prod RUN git clone --depth 1 --branch v1.0.0 https://git.pleroma.social/pleroma/pleroma.git /app/pleroma WORKDIR /app/pleroma VOLUME /app/pleroma/uploads -COPY files/run-pleroma /bin/run-pleroma +COPY files/ /bin CMD /bin/run-pleroma diff --git a/pleroma/files/compile-pleroma b/pleroma/files/compile-pleroma new file mode 100755 index 0000000..a224eba --- /dev/null +++ b/pleroma/files/compile-pleroma @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e +mix local.hex --force +mix local.rebar --force +mix deps.unlock tzdata +mix deps.get +mix compile