queer.party (patchstodon-latest)

Published 2023-03-01 16:13:03 +00:00 by maff in maff/queer.party

Installation

docker pull commit.pup.cloud/maff/queer.party:patchstodon-latest
sha256:805efdc692c04840d23513bcfc81f824855dd77c1bc0f583314efdd4a84ff76a

Image Layers

ADD file:7633003155a1059419aa1a6756fafb6e4f419d65bff7feb7c945de1e29dccb1e in /
CMD ["bash"]
COPY /opt/node /opt/node # buildkit
COPY /opt/ruby /opt/ruby # buildkit
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/ruby/bin:/opt/node/bin:/opt/mastodon/bin
ARG UID=991
ARG GID=991
SHELL [/bin/bash -o pipefail -c]
RUN |2 UID=991 GID=991 /bin/bash -o pipefail -c apt-get update && echo "Etc/UTC" > /etc/localtime && apt-get install -y --no-install-recommends whois wget && addgroup --gid $GID mastodon && useradd -m -u $UID -g $GID -d /opt/mastodon mastodon && echo "mastodon:$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 24 | mkpasswd -s -m sha-256)" | chpasswd && rm -rf /var/lib/apt/lists/* # buildkit
RUN |2 UID=991 GID=991 /bin/bash -o pipefail -c echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections # buildkit
RUN |2 UID=991 GID=991 /bin/bash -o pipefail -c apt-get update && apt-get -y --no-install-recommends install libssl1.1 libpq5 imagemagick ffmpeg libjemalloc2 libicu66 libidn11 libyaml-0-2 file ca-certificates tzdata libreadline8 gcc tini apt-utils && ln -s /opt/mastodon /mastodon && gem install bundler && rm -rf /var/cache && rm -rf /var/lib/apt/lists/* # buildkit
COPY . /opt/mastodon # buildkit
COPY /opt/mastodon /opt/mastodon # buildkit
ENV RAILS_ENV=production
ENV NODE_ENV=production
ENV RAILS_SERVE_STATIC_FILES=true
ENV BIND=0.0.0.0
USER mastodon
RUN |2 UID=991 GID=991 /bin/bash -o pipefail -c cd ~ && OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile && yarn cache clean # buildkit
WORKDIR /opt/mastodon
ENTRYPOINT ["/usr/bin/tini" "--"]
EXPOSE map[3000/tcp:{} 4000/tcp:{}]
USER root
/bin/bash -o pipefail -c test -x /usr/bin/patch || sh -c 'mkdir -p /var/lib/apt/lists/partial && mkdir -p /var/cache/apt/archives/partial && apt-get update && apt-get install -y git patch'
/bin/bash -o pipefail -c mkdir /patches
USER mastodon
COPY multi:335eabae14ca7e35b8f51344f0c10dc586508ac826c7235e3e6435013333eba7 in /patches/
/bin/bash -o pipefail -c cd /mastodon && sh -c 'for patch in `ls -ad /patches/*`;do echo "Applying patch $patch";/usr/bin/patch -p1 < $patch;done'
/bin/bash -o pipefail -c OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder bundle install
/bin/bash -o pipefail -c OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder bundle exec rails assets:precompile && bundle exec yarn cache clean
USER root
/bin/bash -o pipefail -c apt-get remove -y patch git && apt-get autoremove -y && apt-get clean -y && rm -rf /var/cache/apt/archives /var/lib/apt/lists /patches
USER mastodon
Details
Container
2023-03-01 16:13:03 +00:00
0
OCI / Docker
linux/amd64
663 MiB
Versions (16) View all
latest 2024-04-01
v4.2.8 2024-04-01
v4.2.7 2024-02-23
v4.2.6 2024-02-23
v4.2.5 2024-02-23