mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 10:51:36 -04:00
22 lines
696 B
Docker
22 lines
696 B
Docker
FROM python:3.11-bookworm
|
|
ENV DOCKER=true
|
|
WORKDIR /opt/wrolpi
|
|
|
|
# Update dependencies for the services install.
|
|
RUN apt-get update && apt-get install -y ffmpeg catdoc sysstat aria2 iputils-ping
|
|
RUN ffmpeg -version
|
|
# yt-dlp needs cache directory
|
|
RUN mkdir /.cache && chown -R 1000:1000 /.cache
|
|
|
|
# Install dependencies.
|
|
COPY requirements.txt /opt/wrolpi/requirements.txt
|
|
RUN pip3 install -r /opt/wrolpi/requirements.txt
|
|
|
|
# Install WROLPi.
|
|
COPY main.py /opt/wrolpi/
|
|
COPY wrolpi /opt/wrolpi/wrolpi
|
|
COPY modules /opt/wrolpi/modules
|
|
|
|
ENTRYPOINT [ "python3", "-OO", "/opt/wrolpi/main.py"]
|
|
# Log level controlled by LOG_LEVEL env var or wrolpi.yaml config (default: info)
|
|
CMD ["api", "--host", "0.0.0.0"]
|