akkoma (20240811)

Published 2024-08-11 16:09:14 +00:00 by PapaTutuWawa

Installation

docker pull git.polynom.me/papatutuwawa/akkoma:20240811
sha256:63d20fbfea5a7c303c2c0c24e34ec564bd3f4e9518c069e3d9d7ec703715f899

About this package

Akkoma for Docker

Image Layers

ADD file:c644b15c170e2ca46176a566910d40a21dce66518ed8fdfd34ebcf0e9dc90c55 in /
CMD ["/bin/sh"]
ENV OTP_VERSION=27.0 REBAR3_VERSION=3.23.0
LABEL org.opencontainers.image.version=27.0
RUN /bin/sh -c set -xe && OTP_DOWNLOAD_URL="https://github.com/erlang/otp/archive/OTP-${OTP_VERSION}.tar.gz" && OTP_DOWNLOAD_SHA256="5c8ad9143ee81c26aae4699c4bc64f76c5e838efb778f988ad9bb1305f505fed" && REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" && 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.17.2 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="7bb8e6414b77c1707f39f620a2ad54f68d64846d663ec78069536854247fb1ab" && 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"]
ARG AKKOMA_VER
ARG AKKOMA_VER UNAME
ARG AKKOMA_VER UID UNAME
ARG AKKOMA_VER GID UID UNAME
ENV MIX_ENV=prod
LABEL org.opencontainers.image.title="akkoma" org.opencontainers.image.description="Akkoma for Docker" org.opencontainers.image.vendor="akkoma.dev" org.opencontainers.image.documentation="https://docs.akkoma.dev/stable/" org.opencontainers.image.licenses="AGPL-3.0" org.opencontainers.image.url="https://akkoma.dev" org.opencontainers.image.revision=$AKKOMA_VER org.opencontainers.image.created=$BUILD_DATE
ARG AKKOMA_VER GID HOME UID UNAME
|5 AKKOMA_VER=v3.13.2 GID=1000 HOME=/akkoma UID=1000 UNAME=akkoma /bin/sh -c addgroup -g $GID $UNAME && adduser -h $HOME -D -G $UNAME -u $UID $UNAME
|5 AKKOMA_VER=v3.13.2 GID=1000 HOME=/akkoma UID=1000 UNAME=akkoma /bin/sh -c apk add git gcc g++ musl-dev make cmake file-dev exiftool ffmpeg imagemagick libmagic ncurses postgresql-client
|5 AKKOMA_VER=v3.13.2 GID=1000 HOME=/akkoma UID=1000 UNAME=akkoma /bin/sh -c mkdir -p /uploads && chown -R $UNAME /uploads && mkdir -p /static && chown -R $UNAME /static && mkdir -p /config && chown -R $UNAME /config
USER $UNAME
WORKDIR /akkoma
|5 AKKOMA_VER=v3.13.2 GID=1000 HOME=/akkoma UID=1000 UNAME=akkoma /bin/sh -c git clone -b stable https://akkoma.dev/AkkomaGang/akkoma.git /akkoma && git checkout ${AKKOMA_VER}
|5 AKKOMA_VER=v3.13.2 GID=1000 HOME=/akkoma UID=1000 UNAME=akkoma /bin/sh -c echo "import Mix.Config" > config/prod.secret.exs && mix local.hex --force && mix local.rebar --force && mix deps.get --only prod && mix compile
COPY file:4099ff92b918cb904fc8cf1e5a21ae727063fc8f2f3cfedc569c9a1d859846d4 in /akkoma/config/prod.exs
EXPOSE 4000
CMD ["/akkoma/docker-entrypoint.sh"]

Labels

Key Value
io.buildah.version 1.36.0
org.opencontainers.image.created
org.opencontainers.image.description Akkoma for Docker
org.opencontainers.image.documentation https://docs.akkoma.dev/stable/
org.opencontainers.image.licenses AGPL-3.0
org.opencontainers.image.revision v3.13.2
org.opencontainers.image.title akkoma
org.opencontainers.image.url https://akkoma.dev
org.opencontainers.image.vendor akkoma.dev
org.opencontainers.image.version 27.0
Details
Container
2024-08-11 16:09:14 +00:00
1
OCI / Docker
linux/amd64
AGPL-3.0
600 MiB
Versions (4) View all
20240811 2024-08-11
20240728 2024-07-28
20240732 2024-07-28
3.13.2-5 2024-07-21