FROM ubuntu:bionic # RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/community' >> '/etc/apk/repositories' # RUN apk add --no-cache busybox musl dante-server RUN apt-get update && \ apt-get install -y git build-essential libssl-dev libio-socket-ssl-perl liblwp-protocol-https-perl zlib1g-dev && \ rm -rf /var/lib/apt/lists/* RUN cpan Carton RUN git clone https://framagit.org/fiat-tux/hat-softwares/lufi.git /usr/lufi && \ cd /usr/lufi && \ carton install --deployment --without=test --without=postgresql --without=mysql --without=swift-storage --without=ldap --without=htpasswd ENV GID=1000 \ UID=1000 \ SECRET=0423bab3aea2d87d5eedd9a4e8173618 \ CONTACT=contact@domain.tld \ MAX_FILE_SIZE=1000000000 \ WEBROOT=/ \ DEFAULT_DELAY=1 \ MAX_DELAY=0 \ THEME=default \ ALLOW_PWD_ON_FILES=1 \ POLICY_WHEN_FULL=warn COPY startup.sh /usr/local/bin/startup.sh RUN chmod +x /usr/local/bin/startup.sh COPY lufi.conf /usr/lufi/lufi.conf RUN mkdir /config ENV TINI_VERSION v0.19.0 ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-armhf /tini RUN chmod +x /tini EXPOSE 8081 ENTRYPOINT ["/usr/local/bin/startup.sh"]