mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2024-11-16 17:00:14 +00:00
23 lines
554 B
Docker
23 lines
554 B
Docker
FROM python:3.11.3-slim-bullseye
|
|
ARG INSTALL_DEBUG
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV PATH=/root/.local/bin:$PATH
|
|
|
|
# install debug tools for testing environment
|
|
RUN if [ "$INSTALL_DEBUG" ] ; then \
|
|
apt-get -y update && apt-get -y install --no-install-recommends \
|
|
vim htop bmon net-tools iputils-ping procps curl \
|
|
&& pip install --user ipython \
|
|
; fi
|
|
|
|
# install requirements
|
|
COPY ./requirements.txt /requirements.txt
|
|
RUN pip install --user -r requirements.txt
|
|
|
|
COPY app /app
|
|
WORKDIR app
|
|
|
|
VOLUME /youtube
|
|
|
|
CMD ["python", "server.py"]
|