2023-07-23 05:37:34 +00:00
|
|
|
ARG AKKOMA_COMMIT
|
2023-07-23 03:49:40 +00:00
|
|
|
FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
|
|
|
|
|
|
|
|
ENV PROD_SECRET_FILE=/config/prod.secret.exs
|
|
|
|
|
2023-07-23 08:32:04 +00:00
|
|
|
ADD akkoma /opt/akkoma
|
|
|
|
ADD .git /opt/.git
|
2023-07-23 03:49:40 +00:00
|
|
|
ADD prod.exs /opt/akkoma/config/prod.exs
|
|
|
|
|
|
|
|
USER root
|
2023-07-23 08:40:09 +00:00
|
|
|
RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt && chown -R 1000:1000 /config
|
2023-07-23 03:49:40 +00:00
|
|
|
|
|
|
|
USER akkoma
|
2023-07-23 08:00:54 +00:00
|
|
|
RUN mix deps.get && \
|
|
|
|
mix compile && \
|
|
|
|
mix pleroma.frontend install pleroma-fe --ref stable && \
|
|
|
|
mix pleroma.frontend install admin-fe --ref stable
|