Skip to content

Commit ce22f86

Browse files
committed
smaller base image, updated build and docs
1 parent fe1b819 commit ce22f86

File tree

5 files changed

+17
-22
lines changed

5 files changed

+17
-22
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
with:
4949
context: .
5050
file: ./Dockerfile
51-
platforms: linux/amd64
5251
push: ${{ github.event_name != 'pull_request' }}
5352
tags: ${{ steps.meta.outputs.tags }}
5453
labels: ${{ steps.meta.outputs.labels }}
5554
cache-from: type=gha
5655
cache-to: type=gha,mode=max
56+
provenance: false
57+
sbom: false

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
docker-compose.yaml
2-
Dockerfile-dev
2+
Dockerfile-dev
3+
*.env

Dockerfile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
FROM kannibalox/pyrosimple:2.14.2
1+
FROM kannibalox/pyrosimple:2.14.2 AS builder
22

3-
# Set environment variables
4-
ENV RTORRENT_RPC=
5-
ENV RADARR_URL=
6-
ENV RADARR_API_KEY=
3+
FROM python:3.13-slim
74

85
# Update
9-
RUN apt-get update
6+
RUN apt-get update \
7+
&& apt-get upgrade -y
108

119
# Install cron and jq
12-
RUN apt-get install -y cron jq
13-
14-
# Remove unnecessary packages
15-
RUN apt-get purge -y exim* \
16-
&& apt-get autoremove -y \
10+
RUN apt-get install -y --no-install-recommends cron curl jq \
1711
&& rm -rf /var/lib/apt/lists/*
1812

19-
# Upgrade
20-
RUN apt-get upgrade -y
21-
2213
# Copy files into container
2314
COPY cron_trump_search /etc/cron.d/cron_trump_search
2415
COPY trump_search.sh /usr/local/bin/trump_search.sh

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# TinyTrumparr
2-
Automatically detect a trumped torrent (movie only) in rtorrent by reading the Tracker Status Message
3-
Delete this file and data from rtorrent
4-
Find associated movie in radarr
5-
Delete the media file from radarr
6-
Automatic Search for movie using radarr
2+
Automatically detect a trumped torrent (movie only) in rtorrent by reading the Tracker Status Message.
3+
Delete this file and data from rtorrent.
4+
Find associated movie in radarr.
5+
Delete the media file from radarr.
6+
Automatic Search for movie using radarr.
7+
8+
Movies need to be assigned the label "radarr" in rtorrent by radarr to work.
79

810
Sonarr coming soon

cron_trump_search

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SHELL=/bin/bash
1+
SHELL=/bin/sh
22
PATH=/venv/bin:/usr/sbin:/usr/local/bin:/bin
33
HOME=/home/tinyu
44

0 commit comments

Comments
 (0)