add static dir to build
This commit is contained in:
parent
a3f91c721f
commit
6e63808cc0
|
@ -1,3 +1,4 @@
|
||||||
*
|
*
|
||||||
!akkoma
|
!akkoma
|
||||||
!prod.secret.exs
|
!prod.secret.exs
|
||||||
|
!static
|
||||||
|
|
43
Dockerfile
43
Dockerfile
|
@ -1,21 +1,22 @@
|
||||||
ARG AKKOMA_COMMIT
|
ARG AKKOMA_COMMIT
|
||||||
FROM registry.nrd.li/nrdli/akkoma-base:${AKKOMA_COMMIT}
|
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
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \
|
RUN mkdir -p "$(dirname "${PROD_SECRET_FILE}")" && \
|
||||||
chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \
|
chown -R 1000:1000 "$(dirname "${PROD_SECRET_FILE}")" && \
|
||||||
rm -rf /opt/akkoma
|
rm -rf /opt/akkoma
|
||||||
|
|
||||||
USER akkoma
|
USER akkoma
|
||||||
ADD --chown=akkoma:akkoma prod.secret.exs ${PROD_SECRET_FILE}
|
ADD --chown=akkoma:akkoma prod.secret.exs ${PROD_SECRET_FILE}
|
||||||
ADD --chown=akkoma:akkoma akkoma /opt/akkoma
|
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
|
WORKDIR /opt/akkoma
|
||||||
RUN mix deps.get
|
RUN mix local.hex --force && mix local.rebar --force
|
||||||
RUN mix compile
|
RUN mix deps.get
|
||||||
RUN mix pleroma.frontend install pleroma-fe --ref stable
|
RUN mix compile
|
||||||
RUN mix pleroma.frontend install admin-fe --ref stable
|
RUN mix pleroma.frontend install pleroma-fe --ref stable
|
||||||
|
RUN mix pleroma.frontend install admin-fe --ref stable
|
||||||
|
|
BIN
static/images/background.jpg
Normal file
BIN
static/images/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 MiB |
12
static/static/terms-of-service.html
Normal file
12
static/static/terms-of-service.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<p>A community where it is safe to be a nerd about all manner of things.</p>
|
||||||
|
|
||||||
|
<ul>
|
||||||
|
<li>Be welcoming to others.</li>
|
||||||
|
<li>Don't do illegal things. This server is hosted in the US and will comply with its laws.</li>
|
||||||
|
<li>Don't do things to adversely impact federation with other servers.</li>
|
||||||
|
<li>Don't do things to adversely impact the operation of this server.</li>
|
||||||
|
<li>Any NSFW content must be marked as such and have appropriate CWs.</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>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.</p>
|
||||||
|
<p>Announcements will be made by the <a href="https://akkoma.nrd.li/nrdli">@nrdli@akkoma.nrd.li</a> account. Enjoy your stay.</p>
|
Loading…
Reference in a new issue