mirror of
https://github.com/sstent/containers.git
synced 2026-01-26 00:52:00 +00:00
add lufi
This commit is contained in:
36
lufi/Dockerfile
Normal file
36
lufi/Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
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
|
||||
|
||||
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"]
|
||||
Reference in New Issue
Block a user