lufi (latest)
Published 2024-11-18 19:07:19 +00:00 by globuzma
Installation
docker pull git.shenanigans.cc/globuzma/lufi:latest
sha256:bdb89e9a844ba46c3993c3895b004dae5fc468baa61ceeea1c8963c53a4e32b7
Image Layers
ADD rootfs.tar.xz / # buildkit |
CMD ["bash"] |
ARG LUFI_VERSION=0.07.0 |
ARG GID=1000 |
ARG UID=1000 |
USER root |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c apt update && apt install -y wget unzip cron sudo build-essential libssl-dev zlib1g-dev libio-socket-ssl-perl libmojo-pg-perl liblwp-protocol-https-perl && apt-get clean -y && rm -rf /var/lib/{apt,dpkg,cache,log,tmp}/* # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c addgroup --gid "$GID" nonroot # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c adduser --uid "$UID" --gid "$GID" --disabled-password --gecos "" nonroot # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c echo 'nonroot ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers # buildkit |
COPY --chmod=644 lufi-cron /etc/cron.d/lufi-cron # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c cpan Carton # buildkit |
WORKDIR /home/nonroot/lufi |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c wget https://framagit.org/fiat-tux/hat-softwares/lufi/-/archive/${LUFI_VERSION}/lufi-${LUFI_VERSION}.zip && unzip lufi-${LUFI_VERSION}.zip -d /tmp && mv /tmp/lufi-${LUFI_VERSION}/* /home/nonroot/lufi && rm -rf /tmp/* && rm -rf /home/nonroot/lufi/lufi-${LUFI_VERSION}.zip # buildkit |
COPY --chown=nonroot:nonroot lufi.conf . # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c mkdir -p themes/megalis/ # buildkit |
COPY themes/megalis themes/megalis/ # buildkit |
COPY --chown=nonroot:nonroot --chmod=760 docker-entrypoint.sh /home/nonroot/lufi/docker-entrypoint.sh # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c carton install --deployment --without=test --without=mysql && rm -rf local/cache/* local/man/* # buildkit |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c chown -R nonroot:nonroot . # buildkit |
EXPOSE map[8081/tcp:{}] |
USER nonroot |
RUN |3 LUFI_VERSION=0.07.0 GID=1000 UID=1000 /bin/sh -c mkdir /home/nonroot/lufi/files # buildkit |
ENTRYPOINT ["/home/nonroot/lufi/docker-entrypoint.sh"] |