Version V2023-08-13

This commit is contained in:
Eric Coissac
2023-08-13 23:11:46 +02:00
parent 76ef463775
commit b6d3b1d848
5 changed files with 116 additions and 27 deletions

View File

@@ -4,12 +4,31 @@ WORKDIR /opt
RUN apt-get update && apt-get install -y \
python3-pip \
git \
ffmpeg \
cron \
moreutils \
bsdextrautils \
htop \
vim \
nano \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install sigal
RUN python3 -m pip install 'sigal @ git+https://github.com/saimn/sigal.git'
COPY run.sh sigal.conf.py auth.conf auth.htpasswd ./
RUN mkdir -p /themes
RUN mkdir -p /config
RUN mkdir -p /plugins/local_plugins
RUN touch /plugins/local_plugins/__init__.py
ENV LANG C.UTF-8
COPY run.sh auth.conf auth.htpasswd ./
ENV JPEG_QUALITY=90
ENV LANG=C.UTF-8
ENV PYTHONPATH="/themes:/plugins:/config"
COPY build_sigal.sh /usr/local/bin/build_sigal
RUN chmod +x /usr/local/bin/build_sigal
CMD ["./run.sh"]