| 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"] |