ARG AKKOMA_COMMIT FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT} ENV PROD_SECRET_FILE=/config/prod.secret.exs USER root RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \ touch "${PROD_SECRET_FILE}" && \ chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \ rm -rf /opt/akkoma && \ cd /opt && \ git clone https://akkoma.dev/AkkomaGang/akkoma.git akkoma && \ chown -R akkoma: /opt/akkoma ADD --chown=akkoma:akkoma prod.exs /opt/akkoma/config/prod.exs USER akkoma WORKDIR /opt/akkoma RUN git fetch --all && git checkout "${AKKOMA_COMMIT}" RUN mix deps.get RUN mix compile RUN mix pleroma.frontend install pleroma-fe --ref stable RUN mix pleroma.frontend install admin-fe --ref stable