split compile and fe install steps
This commit is contained in:
parent
2389535593
commit
06384b9a19
|
@ -4,14 +4,12 @@ FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
|
||||||
ENV PROD_SECRET_FILE=/config/prod.secret.exs
|
ENV PROD_SECRET_FILE=/config/prod.secret.exs
|
||||||
|
|
||||||
ADD akkoma /opt/akkoma
|
ADD akkoma /opt/akkoma
|
||||||
ADD .git /opt/.git
|
|
||||||
ADD prod.exs /opt/akkoma/config/prod.exs
|
ADD prod.exs /opt/akkoma/config/prod.exs
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt && chown -R 1000:1000 /config
|
RUN mkdir /config && touch /config/prod.secret.exs && chown -R 1000:1000 /opt && chown -R 1000:1000 /config
|
||||||
|
|
||||||
USER akkoma
|
USER akkoma
|
||||||
RUN mix deps.get && \
|
RUN mix deps.get && mix compile
|
||||||
mix compile && \
|
RUN mix pleroma.frontend install pleroma-fe --ref stable
|
||||||
mix pleroma.frontend install pleroma-fe --ref stable && \
|
RUN mix pleroma.frontend install admin-fe --ref stable
|
||||||
mix pleroma.frontend install admin-fe --ref stable
|
|
||||||
|
|
Loading…
Reference in a new issue