First self-hosted release

This commit is contained in:
Gabisonfire
2024-01-17 00:27:03 -05:00
parent 94ec4a7a52
commit a34e40fbc8
16 changed files with 1742 additions and 95 deletions

12
addon/hosted/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.10.13
COPY . .
RUN pip --no-cache-dir install pipenv && \
apt-get update && apt-get install sqlite3 && \
apt-get clean autoclean && \
apt-get autoremove --yes && \
mkdir /sqlite && \
sqlite3 /sqlite/torrentio.sqlite "VACUUM;" && \
cat torrentio.sql | sqlite3 /sqlite/torrentio.sqlite && \
ls -l /sqlite && \
pipenv install && touch .init
CMD [ "pipenv", "run", "python", "-u", "scraper.py" ]