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
|
|
|
|
|
|
|
|
ADD src /opt/akkoma/
|
|
|
|
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
|