akkoma-build (main)

Published 2026-08-16 19:57:57 +00:00 by 7luckz

Installation

docker pull forgejo.feather.city/7luckz/akkoma-build:main
sha256:bff8b9b596ce67c8450bf4ddbaadb2ebca391ddb26a16748b554d0a4574014fb

Image layers

ADD file:1da756d12551a0e3e793e02ef87432d69d4968937bd11bed0af215db19dd94cd in /
CMD ["/bin/sh"]
ARG ERLANG
RUN |1 ERLANG=26.0.2 /bin/sh -c apk add --update --no-cache ca-certificates libstdc++ ncurses $(if [ "${ERLANG:0:1}" = "1" ]; then echo "libressl"; else echo "openssl"; fi) unixodbc lksctp-tools # buildkit
COPY /usr/local /usr/local # buildkit
COPY /ELIXIR_LOCAL/usr/local /usr/local # buildkit
ENV MIX_ENV=prod
ENV OAUTH_CONSUMER_STRATEGIES=oidc
ARG HOME=/opt/akkoma
RUN |1 HOME=/opt/akkoma /bin/sh -c apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client # buildkit
ARG UID=1000
ARG GID=1000
ARG UNAME=akkoma
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c addgroup -g $GID $UNAME # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c adduser -u $UID -G $UNAME -D -h $HOME $UNAME # buildkit
WORKDIR /opt/akkoma
COPY akkoma /opt/akkoma # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c rm -f /opt/akkoma/.git # buildkit
USER akkoma
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mix local.hex --force && mix local.rebar --force # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mix deps.get --only prod # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c sed -i "s/script_src = \\\"script-src 'self' '#{nonce_tag}' \\\"/script_src = \\\"script-src 'self' '#{nonce_tag}'; worker-src 'self' blob: \\\"/g" lib/pleroma/web/plugs/http_security_plug.ex # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c sed -i "s/style_src = \\\"style-src 'self' '#{nonce_tag}'\\\"/style_src = \\\"style-src 'self' 'unsafe-inline' 'unsafe-hashes'\\\"/g" lib/pleroma/web/plugs/http_security_plug.ex # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c sed -i "s/\\\"connect-src 'self' \\\"/\\\"connect-src 'self' blob: https:\\/\\/feather.city https:\\/\\/auth.svc.feather.city \\\"/g" lib/pleroma/web/plugs/http_security_plug.ex # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c sed -i 's/ :recon/ :recon, :eldap/g' mix.exs # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mix compile # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mix pleroma.frontend install admin-fe --ref stable # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mix pleroma.frontend install mangane --ref dist --build-url https://github.com/BDX-town/Mangane/releases/latest/download/static.zip # buildkit
RUN |4 HOME=/opt/akkoma UID=1000 GID=1000 UNAME=akkoma /bin/sh -c mkdir -p /opt/akkoma/instance/static/static && echo '{"backend": "https://social.opossum.uk"}' > /opt/akkoma/instance/static/mangane.json && echo '{"backend": "https://social.opossum.uk"}' > /opt/akkoma/instance/static/soapbox.json && echo '{"backend": "https://social.opossum.uk"}' > /opt/akkoma/instance/static/static/mangane.json && echo '{"backend": "https://social.opossum.uk"}' > /opt/akkoma/instance/static/static/soapbox.json # buildkit
CMD ["/bin/sh" "-c" "find _build -type f -exec touch -t 203001010000 {} + 2>/dev/null || true; exec ./docker-entrypoint.sh"]

Labels

Key Value
org.opencontainers.image.created 2026-08-16T19:57:46.129Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 271328940cf1fa7d3c5c482959f32a2572f157c0
org.opencontainers.image.source https://forgejo.feather.city/7luckz/akkoma-build
org.opencontainers.image.title akkoma-build
org.opencontainers.image.url https://forgejo.feather.city/7luckz/akkoma-build
org.opencontainers.image.version main
Details
Container
2026-08-16 19:57:57 +00:00
26
OCI / Docker
linux/amd64
312 MiB
Versions (1) View all
main 2026-08-16