akkoma (sha256:5a04c060ff7edec61eda84ec0536a95783559562193c663304fc9d787cc4603d)

Published 2025-12-06 14:10:40 +00:00 by itepechi in itepechi/akkoma

Installation

docker pull git.itepechi.me/itepechi/akkoma@sha256:5a04c060ff7edec61eda84ec0536a95783559562193c663304fc9d787cc4603d
sha256:5a04c060ff7edec61eda84ec0536a95783559562193c663304fc9d787cc4603d

Image layers

ADD alpine-minirootfs-3.20.8-aarch64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV OTP_VERSION=26.2.5.16 REBAR3_VERSION=3.25.0
LABEL org.opencontainers.image.version=26.2.5.16
RUN /bin/sh -c set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="f145ea6aa8cb9c15fac7d7905fbd530c25420d11f4e23c5c3df6ccf27584625c" && REBAR3_DOWNLOAD_SHA256="7d3f42dc0e126e18fb73e4366129f11dd37bad14d404f461e0a3129ce8903440" && apk add --no-cache --virtual .fetch-deps curl ca-certificates && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && apk add --no-cache --virtual .build-deps dpkg-dev dpkg gcc g++ libc-dev linux-headers make autoconf ncurses-dev openssl-dev unixodbc-dev lksctp-tools-dev tar && export ERL_TOP="/usr/src/otp_src_${OTP_VERSION%%@*}" && mkdir -vp $ERL_TOP && tar -xzf otp-src.tar.gz -C $ERL_TOP --strip-components=1 && rm otp-src.tar.gz && ( cd $ERL_TOP && ./otp_build autoconf && gnuArch="$(dpkg-architecture --query DEB_HOST_GNU_TYPE)" && ./configure --build="$gnuArch" && make -j$(getconf _NPROCESSORS_ONLN) && make install ) && rm -rf $ERL_TOP && find /usr/local -regex '/usr/local/lib/erlang/\(lib/\|erts-\).*/\(man\|doc\|obj\|c_src\|emacs\|info\|examples\)' | xargs rm -rf && find /usr/local -name src | xargs -r find | grep -v '\.hrl$' | xargs rm -v || true && find /usr/local -name src | xargs -r find | xargs rmdir -vp || true && scanelf --nobanner -E ET_EXEC -BF '%F' --recursive /usr/local | xargs -r strip --strip-all && scanelf --nobanner -E ET_DYN -BF '%F' --recursive /usr/local | xargs -r strip --strip-unneeded && runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )" && REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" && curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" && echo "${REBAR3_DOWNLOAD_SHA256} rebar3-src.tar.gz" | sha256sum -c - && mkdir -p /usr/src/rebar3-src && tar -xzf rebar3-src.tar.gz -C /usr/src/rebar3-src --strip-components=1 && rm rebar3-src.tar.gz && cd /usr/src/rebar3-src && HOME=$PWD ./bootstrap && install -v ./rebar3 /usr/local/bin/ && rm -rf /usr/src/rebar3-src && apk add --virtual .erlang-rundeps $runDeps lksctp-tools ca-certificates && apk del .fetch-deps .build-deps # buildkit
CMD ["erl"]
ENV ELIXIR_VERSION=v1.15.8 LANG=C.UTF-8
RUN /bin/sh -c set -xe && ELIXIR_DOWNLOAD_URL="https://github.com/elixir-lang/elixir/archive/${ELIXIR_VERSION}.tar.gz" && ELIXIR_DOWNLOAD_SHA256="09e697ab13fc60f27adaba9b71f8793105acd4320a89b16be0ceb4a13426d779" && buildDeps=' ca-certificates curl make ' && apk add --no-cache --virtual .build-deps $buildDeps && curl -fSL -o elixir-src.tar.gz $ELIXIR_DOWNLOAD_URL && echo "$ELIXIR_DOWNLOAD_SHA256 elixir-src.tar.gz" | sha256sum -c - && mkdir -p /usr/local/src/elixir && tar -xzC /usr/local/src/elixir --strip-components=1 -f elixir-src.tar.gz && rm elixir-src.tar.gz && cd /usr/local/src/elixir && make install clean && find /usr/local/src/elixir/ -type f -not -regex "/usr/local/src/elixir/lib/[^\/]*/lib.*" -exec rm -rf {} + && find /usr/local/src/elixir/ -type d -depth -empty -delete && apk del .build-deps # buildkit
CMD ["iex"]
ENV MIX_ENV=prod
ENV ERL_EPMD_ADDRESS=127.0.0.1
ARG DATA_DIR=/var/lib/akkoma/
ARG INSTALL_DIR=/opt/akkoma/
ARG CONFIG_DIR=/etc/akkoma/
ARG UID=1000
ARG GID=1000
RUN |5 DATA_DIR=/var/lib/akkoma/ INSTALL_DIR=/opt/akkoma/ CONFIG_DIR=/etc/akkoma/ UID=1000 GID=1000 /bin/sh -c addgroup -g ${GID} akkoma && adduser -u ${UID} -G akkoma -s /bin/sh -D akkoma && apk add --no-cache exiftool ffmpeg imagemagick libmagic ncurses postgresql-client # buildkit
RUN |5 DATA_DIR=/var/lib/akkoma/ INSTALL_DIR=/opt/akkoma/ CONFIG_DIR=/etc/akkoma/ UID=1000 GID=1000 /bin/sh -c mkdir -p "${DATA_DIR}uploads/" && mkdir -p "${DATA_DIR}static/" && mkdir -p "${INSTALL_DIR}" && mkdir -p "${CONFIG_DIR}" # buildkit
COPY /opt/akkoma/_build/ /opt/akkoma/ # buildkit
COPY ./docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh # buildkit
ENV PATH=/opt/akkoma/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV AKKOMA_CONFIG_PATH=/etc/akkoma/config.exs
WORKDIR /opt/akkoma/
EXPOSE &{[{{70 0} {70 0}}] 0x400190e540}
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["pleroma" "start"]

Labels

Key Value
org.opencontainers.image.version 26.2.5.16
Details
Container
2025-12-06 14:10:40 +00:00
0
OCI / Docker
linux/arm64
163 MiB
Versions (2) View all
2025-12-06 2025-12-06
latest 2025-12-06