install frontends in container; use local sha for final image tag
This commit is contained in:
parent
9f9bcaeaa4
commit
fd3b3177e1
|
@ -10,4 +10,7 @@ USER root
|
|||
RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt/akkoma && chown -R 1000:1000 /config
|
||||
|
||||
USER akkoma
|
||||
RUN mix deps.get && mix compile
|
||||
RUN mix deps.get && \
|
||||
mix compile && \
|
||||
mix pleroma.frontend install pleroma-fe --ref stable && \
|
||||
mix pleroma.frontend install admin-fe --ref stable
|
||||
|
|
3
build.sh
3
build.sh
|
@ -2,8 +2,9 @@
|
|||
set -Eeuxo pipefail
|
||||
|
||||
AKKOMA_COMMIT=$(cd src; git rev-parse HEAD)
|
||||
LOCAL_COMMIT=$(git rev-parse HEAD)
|
||||
AKKOMA_BASE_IMAGE="registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}"
|
||||
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${AKKOMA_COMMIT}"
|
||||
AKKOMA_FINAL_IMAGE="registry.nrd.li/nrdli/akkoma:${LOCAL_COMMIT}"
|
||||
|
||||
pushd src
|
||||
docker build \
|
||||
|
|
Loading…
Reference in a new issue