2021-11-02 12:29:03 -06:00
|
|
|
FROM python:3.8-buster
|
2021-11-01 16:42:52 -06:00
|
|
|
ENV DOCKER=true
|
|
|
|
|
WORKDIR /opt/wrolpi
|
|
|
|
|
|
|
|
|
|
# Update dependencies for the services install.
|
|
|
|
|
RUN apt update
|
2022-01-06 13:56:04 -07:00
|
|
|
# ffmpeg for Videos and Latex for OTP PDF.
|
|
|
|
|
RUN apt-get install -y ffmpeg texlive-latex-base texlive-latex-extra
|
|
|
|
|
RUN pdflatex --version
|
2021-11-01 16:42:52 -06:00
|
|
|
|
|
|
|
|
# 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" ]
|