A new start

Signed-off-by: Roland <roland@learningselfreliance.com>
This commit is contained in:
Roland 2021-11-01 16:42:52 -06:00
commit 9b899f6fc0
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
135 changed files with 15764 additions and 0 deletions

18
docker/api/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM python:3.9-buster
ENV DOCKER=true
WORKDIR /opt/wrolpi
# Update dependencies for the services install.
RUN apt update
RUN apt install -y ffmpeg wkhtmltopdf
# 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" ]