ADD alpine-minirootfs-3.19.7-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
ENV MIX_ENV=prod |
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/akkoma/bin |
ENV AKKOMA_CONFIG_PATH=/config/config.exs |
RUN /bin/sh -c awk 'NR==2' /etc/apk/repositories | sed 's/main/community/' | tee -a /etc/apk/repositories && apk update && apk add su-exec curl unzip ncurses file-dev imagemagick ffmpeg exiftool # buildkit |
COPY ./entrypoint.sh /entrypoint.sh # buildkit |
RUN /bin/sh -c chown root:root /entrypoint.sh && chmod u+x /entrypoint.sh # buildkit |
RUN /bin/sh -c adduser --system --shell /bin/false --home /opt/akkoma akkoma # buildkit |
ADD https://akkoma-updates.s3-website.fr-par.scw.cloud/stable/akkoma-amd64-musl.zip /tmp/akkoma.zip # buildkit |
RUN /bin/sh -c unzip /tmp/akkoma.zip -d /tmp/ && mv /tmp/release/* /opt/akkoma && rmdir /tmp/release && rm /tmp/akkoma.zip && chown akkoma -R /opt/akkoma # buildkit |
VOLUME [/data] |
VOLUME [/config] |
WORKDIR /opt/akkoma |
EXPOSE map[4000/tcp:{}] |
ENTRYPOINT ["/entrypoint.sh"] |
CMD ["pleroma" "start"] |