ADD alpine-minirootfs-3.21.2-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
RUN /bin/sh -c mkdir /plugins # buildkit |
RUN /bin/sh -c apk add --no-cache su-exec ca-certificates dos2unix imagemagick ffmpeg # buildkit |
WORKDIR /opt |
RUN /bin/sh -c apk add --no-cache git libde265-dev musl-dev build-base libtool cmake libjpeg-turbo-dev x265-dev ffmpeg-dev zlib-dev # buildkit |
RUN /bin/sh -c git clone https://github.com/strukturag/libheif.git # buildkit |
WORKDIR /opt/libheif |
RUN /bin/sh -c git checkout v1.19.5 # buildkit |
RUN /bin/sh -c mkdir build # buildkit |
WORKDIR /opt/libheif/build |
RUN /bin/sh -c cmake --preset=release .. # buildkit |
RUN /bin/sh -c make # buildkit |
RUN /bin/sh -c make install # buildkit |
COPY /opt/bin/plugin_antispam_ocr /plugins/ # buildkit |
COPY /opt/bin/media_repo /opt/bin/import_synapse /opt/bin/import_dendrite /opt/bin/export_synapse_for_import /opt/bin/export_dendrite_for_import /opt/bin/import_to_synapse /opt/bin/gdpr_export /opt/bin/gdpr_import /opt/bin/s3_consistency_check /opt/bin/combine_signing_keys /opt/bin/generate_signing_key /opt/bin/thumbnailer /usr/local/bin/ # buildkit |
COPY ./config.sample.yaml /etc/media-repo.yaml.sample # buildkit |
COPY ./docker/run.sh /usr/local/bin/ # buildkit |
RUN /bin/sh -c dos2unix /usr/local/bin/run.sh && chmod 744 /usr/local/bin/run.sh # buildkit |
ENV REPO_CONFIG=/data/media-repo.yaml |
CMD ["/bin/sh" "-c" "/usr/local/bin/run.sh"] |
VOLUME [/data /media] |
EXPOSE map[8000/tcp:{}] |