2016-08-29 15:51:09 +02:00
|
|
|
FROM nginx:stable
|
|
|
|
|
|
|
|
|
|
WORKDIR /opt
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2020-09-23 13:19:36 +02:00
|
|
|
python3-pip \
|
2023-08-13 23:11:46 +02:00
|
|
|
git \
|
|
|
|
|
ffmpeg \
|
|
|
|
|
cron \
|
|
|
|
|
moreutils \
|
|
|
|
|
bsdextrautils \
|
|
|
|
|
htop \
|
|
|
|
|
vim \
|
|
|
|
|
nano \
|
2020-09-23 13:19:36 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2024-05-20 11:22:23 +02:00
|
|
|
RUN python3 -m pip install 'sigal @ git+https://gargoton.coissac.eu/forks/sigal.git'
|
2016-08-29 15:51:09 +02:00
|
|
|
|
2023-08-13 23:11:46 +02:00
|
|
|
RUN mkdir -p /themes
|
|
|
|
|
RUN mkdir -p /config
|
|
|
|
|
RUN mkdir -p /plugins/local_plugins
|
|
|
|
|
RUN touch /plugins/local_plugins/__init__.py
|
2016-08-29 15:51:09 +02:00
|
|
|
|
2023-08-13 23:11:46 +02:00
|
|
|
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
|
2016-08-29 15:51:09 +02:00
|
|
|
|
|
|
|
|
CMD ["./run.sh"]
|
2023-08-13 23:11:46 +02:00
|
|
|
|