~singpolyma/soapbox-fly

soapbox-fly/Dockerfile -rw-r--r-- 1.4 KiB
8d50c975root21 Fixed a typo in Dockerfile 17 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian:bookworm-slim

ENV SOAPBOX_FE_VERSION=v2.0.0

RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get -y full-upgrade && \
    DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y postgresql postgresql-contrib imagemagick ffmpeg libimage-exiftool-perl unzip elixir ca-certificates curl supervisor openssh-client libmagic1 && \
    apt-get clean && \
    sed -ie "s/data_directory =.*/data_directory = '\/data\/postgres'/" /etc/postgresql/14/main/postgresql.conf

RUN adduser --system --home=/data/pleroma --group pleroma && \
    mkdir /opt/pleroma && \
    curl -L -o /tmp/pleroma.zip "https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=amd64" && \
    unzip -q /tmp/pleroma.zip -d /tmp/ && \
    cd /tmp/release && \
    mv * /opt/pleroma/

RUN mkdir -p /opt/pleroma/dist && \
    curl -L -o /opt/pleroma/dist/soapbox-fe.zip "https://gitlab.com/soapbox-pub/soapbox-fe/-/jobs/artifacts/$SOAPBOX_FE_VERSION/download?job=build-production"

ADD entrypoint.sh /bin/entrypoint.sh
ADD start_pleroma.sh /bin/start_pleroma.sh
ADD supervisord.conf /etc/supervisord.conf
ADD config.exs /etc/pleroma/config.exs
RUN chmod 770 /bin/entrypoint.sh /bin/start_pleroma.sh
ENTRYPOINT ["/bin/entrypoint.sh"]

RUN chown -R pleroma:pleroma /opt/pleroma /etc/pleroma /bin/start_pleroma.sh && \
    ln -fs /data/pleroma /opt/pleroma/instance