mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
* Converting OTP PDF generation to Latex to avoid installing wkhtmltopdf. * Creating temporary_directory_path to simplify creating a TemporaryDirectory of type Path. * Removing author * Linting * Installing texlive-latex-extra for more readable font. * Raspberry pi has to archive locally. Signed-off-by: Roland <roland@learningselfreliance.com>
20 lines
579 B
Docker
20 lines
579 B
Docker
FROM python:3.8-buster
|
|
ENV DOCKER=true
|
|
WORKDIR /opt/wrolpi
|
|
|
|
# Update dependencies for the services install.
|
|
RUN apt update
|
|
# ffmpeg for Videos and Latex for OTP PDF.
|
|
RUN apt-get install -y ffmpeg texlive-latex-base texlive-latex-extra
|
|
RUN pdflatex --version
|
|
|
|
# Install WROLPi
|
|
COPY main.py /opt/wrolpi/
|
|
COPY config /opt/wrolpi/config
|
|
COPY wrolpi /opt/wrolpi/wrolpi
|
|
COPY modules /opt/wrolpi/modules
|
|
COPY requirements.txt /opt/wrolpi/requirements.txt
|
|
RUN pip3 install -r /opt/wrolpi/requirements.txt
|
|
|
|
ENTRYPOINT [ "python3", "/opt/wrolpi/main.py"]
|
|
CMD ["api", "--host", "0.0.0.0" ]
|