Jack / Dockerfile
plex-media's picture
Update Dockerfile
e916635 verified
Raw
History Blame Contribute Delete
852 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/aymene69/stremio-jackett ./
# --- install deps: requirements.txt (bilo gdje) ili pyproject.toml ---
RUN set -eux; \
REQ="$(find . -maxdepth 3 -name requirements.txt -print -quit || true)"; \
if [ -n "$REQ" ]; then \
echo "Using $REQ"; \
pip install --no-cache-dir -r "$REQ"; \
elif [ -f pyproject.toml ]; then \
echo "Using pyproject.toml"; \
pip install --no-cache-dir "uvicorn[standard]" fastapi; \
pip install --no-cache-dir .; \
else \
echo "No requirements.txt or pyproject.toml found"; \
ls -la; \
exit 1; \
fi
EXPOSE 7860
CMD ["python3","-m","uvicorn","main:app","--host","0.0.0.0","--port","7860"]