ADD file:430cca9ad155514d8c818e860e66e2aeccfb6230874d4faf446a1d0c2fc1054f in / |
CMD ["bash"] |
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" && fetchDeps=' curl ca-certificates' && apt-get update && apt-get install -y --no-install-recommends $fetchDeps && curl -fSL -o otp-src.tar.gz "$OTP_DOWNLOAD_URL" && echo "$OTP_DOWNLOAD_SHA256 otp-src.tar.gz" | sha256sum -c - && runtimeDeps=' libodbc1 libssl3 libsctp1 ' && buildDeps=' autoconf dpkg-dev gcc g++ make libncurses-dev unixodbc-dev libssl-dev libsctp-dev ' && apt-get install -y --no-install-recommends $runtimeDeps && apt-get install -y --no-install-recommends $buildDeps && 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$(nproc) && make install ) && find /usr/local -name examples | xargs rm -rf && REBAR3_DOWNLOAD_URL="https://github.com/erlang/rebar3/archive/${REBAR3_VERSION}.tar.gz" && REBAR3_DOWNLOAD_SHA256="00646b692762ffd340560e8f16486dbda840e1546749ee5a7f58feeb77e7b516" && mkdir -p /usr/src/rebar3-src && curl -fSL -o rebar3-src.tar.gz "$REBAR3_DOWNLOAD_URL" && echo "$REBAR3_DOWNLOAD_SHA256 rebar3-src.tar.gz" | sha256sum -c - && 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 && apt-get purge -y --auto-remove $buildDeps $fetchDeps && rm -rf $ERL_TOP /var/lib/apt/lists/* # 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 ' && apt-get update && apt-get install -y --no-install-recommends $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 && apt-get purge -y --auto-remove $buildDeps && rm -rf /var/lib/apt/lists/* # buildkit |
CMD ["iex"] |
ARG AKKOMA_TAG |
ARG AKKOMA_TAG UID |
ARG AKKOMA_TAG GID UID |
ENV MIX_ENV=prod |
|3 AKKOMA_TAG=v3.13.2 GID=111 UID=111 /bin/sh -c apt-get update && apt-get install -y git build-essential postgresql postgresql-contrib cmake libmagic-dev imagemagick ffmpeg libimage-exiftool-perl |
|3 AKKOMA_TAG=v3.13.2 GID=111 UID=111 /bin/sh -c groupadd -g ${GID} akkoma && useradd -d /akkoma -s /bin/false -g akkoma -u ${UID} akkoma |
ARG AKKOMA_TAG DATA GID UID |
|4 AKKOMA_TAG=v3.13.2 DATA=/var/lib/akkoma GID=111 UID=111 /bin/sh -c mkdir -p /etc/akkoma && chown -R akkoma /etc/akkoma && mkdir -p ${DATA}/uploads && mkdir -p ${DATA}/static && chown -R akkoma ${DATA} |
USER akkoma |
WORKDIR /akkoma |
|4 AKKOMA_TAG=v3.13.2 DATA=/var/lib/akkoma GID=111 UID=111 /bin/sh -c git clone --depth 1 -b $AKKOMA_TAG https://akkoma.dev/AkkomaGang/akkoma.git /akkoma |
|4 AKKOMA_TAG=v3.13.2 DATA=/var/lib/akkoma GID=111 UID=111 /bin/sh -c echo "import Mix.Config" > config/prod.secret.exs && mix local.hex --force && mix local.rebar --force && mix deps.get --only prod && mkdir release && mix release --path /akkoma |
COPY file:81f2a16d550cddbe6b9ef664290eeeddcda9a5dccac5ca6938abfb4ec65135f1 in /etc/akkoma/config.exs |
EXPOSE 4000 |
ENTRYPOINT ["/akkoma/docker-entrypoint.sh"] |