akkoma-build/Dockerfile

18 lines
497 B
Docker

ARG AKKOMA_COMMIT
FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
ENV PROD_SECRET_FILE=/config/prod.secret.exs
ADD akkoma /opt/akkoma
ADD .git /opt/.git
ADD prod.exs /opt/akkoma/config/prod.exs
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 && \
mix pleroma.frontend install pleroma-fe --ref stable && \
mix pleroma.frontend install admin-fe --ref stable