Initial Commit

This commit is contained in:
red 2025-03-04 09:51:26 -05:00
commit 0ec5aa83d5
8 changed files with 506 additions and 0 deletions

33
pleroma/Dockerfile Normal file
View file

@ -0,0 +1,33 @@
FROM alpine
ARG HOME=/opt/pleroma
ENV HOME=${HOME}
ARG DATA=/var/lib/pleroma
ENV DATA=${DATA}
RUN wget 'https://git.pleroma.social/api/v4/projects/2/jobs/artifacts/stable/download?job=amd64-musl' -O /tmp/pleroma.zip
RUN unzip /tmp/pleroma.zip -d /tmp/
RUN apk update && \
apk add exiftool ffmpeg vips libmagic ncurses postgresql-client
RUN adduser --system --shell /bin/false --home ${HOME} pleroma &&\
mkdir -p ${DATA} &&\
chown -R pleroma ${DATA} &&\
mkdir -p /etc/pleroma &&\
chown -R pleroma /etc/pleroma &&\
mv /tmp/release/* ${HOME} &&\
chown -R pleroma ${HOME}
RUN rm -r /tmp/release
RUN rm /tmp/pleroma.zip
USER pleroma
COPY --chmod=0764 --chown=pleroma ./static-files/ /static-files/
COPY --chmod=0640 --chown=pleroma ./docker.exs /etc/pleroma/config.exs
COPY --chmod=0755 ./docker-entrypoint.sh ${HOME}
EXPOSE 4000
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"]