diff --git a/.dockerignore b/.dockerignore index 18f835a..cdea457 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ * !akkoma !prod.secret.exs +!static diff --git a/Dockerfile b/Dockerfile index 13fe3ca..aba55b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,22 @@ -ARG AKKOMA_COMMIT -FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT} - -ENV PROD_SECRET_FILE=/config/prod.secret.exs - -USER root -WORKDIR / -RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \ - chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \ - rm -rf /opt/akkoma - -USER akkoma -ADD --chown=akkoma:akkoma prod.secret.exs ${PROD_SECRET_FILE} -ADD --chown=akkoma:akkoma akkoma /opt/akkoma - -WORKDIR /opt/akkoma -RUN mix local.hex --force && mix local.rebar --force -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 +ARG AKKOMA_COMMIT +FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT} + +ENV PROD_SECRET_FILE=/config/prod.secret.exs + +USER root +WORKDIR / +RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \ + chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \ + rm -rf /opt/akkoma + +USER akkoma +ADD --chown=akkoma:akkoma prod.secret.exs ${PROD_SECRET_FILE} +ADD --chown=akkoma:akkoma akkoma /opt/akkoma +ADD --chown=akkoma:akkoma static /opt/akkoma-static + +WORKDIR /opt/akkoma +RUN mix local.hex --force && mix local.rebar --force +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 diff --git a/static/images/background.jpg b/static/images/background.jpg new file mode 100644 index 0000000..92ab81c Binary files /dev/null and b/static/images/background.jpg differ diff --git a/static/static/terms-of-service.html b/static/static/terms-of-service.html new file mode 100644 index 0000000..3951fbc --- /dev/null +++ b/static/static/terms-of-service.html @@ -0,0 +1,12 @@ +

A community where it is safe to be a nerd about all manner of things.

+ + + +

Please report any harassment of users on this instance so appropriate action can be taken. Harassment by users of this instance will not be tolerated.

+

Announcements will be made by the @nrdli@akkoma.nrd.li account. Enjoy your stay.