mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 03:16:22 -05:00
A new start
Signed-off-by: Roland <roland@learningselfreliance.com>
This commit is contained in:
commit
9b899f6fc0
135 changed files with 15764 additions and 0 deletions
18
docker/api/Dockerfile
Normal file
18
docker/api/Dockerfile
Normal 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" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue