Commit Graph
187 Commits
Author SHA1 Message Date
meeb 3d6a217f20 bump ffmpeg and yt-dlp 2025-03-19 15:36:36 +11:00
meeb d222df1aae Merge pull request #831 from tcely/patch-10
Delete pip.conf
2025-03-18 06:09:00 +11:00
tcely 5383d57946 Remove an unnecessary rm 2025-03-15 12:40:43 -04:00
tcely 9021411037 Reorganize layers for better caching 2025-03-15 12:24:43 -04:00
tcely 8dc2455bfa Use the tubesync-basestage 2025-03-15 11:53:58 -04:00
tcely 6507499047 Merge branch 'meeb:main' into patch-10 2025-03-14 16:04:22 -04:00
tcely 30b3f08b17 Merge branch 'main' into patch-6 2025-03-13 10:32:53 -04:00
tcely ef5b939caf Check the copied nginx configuration
Checking before the copy doesn't help.

Fixes #804
2025-03-12 13:02:55 -04:00
tcely 552e46faf4 Remove /etc/pip.conf from Dockerfile 2025-03-11 12:00:04 -04:00
tcely 2cd33672af Remove python3-python-socks 2025-03-11 09:05:38 -04:00
tcely 092e5ef54c Add python3-socks 2025-03-11 08:38:25 -04:00
tcely 239cfca534 Use socks support from the operating system 2025-03-11 08:24:02 -04:00
meeb f0e6f2819d Merge pull request #808 from tcely/patch-12
Speed up `arm64` builds
2025-03-11 22:17:16 +11:00
tcely 7c0891c703 Link to the python3 version immediately after installing it 2025-03-08 10:45:28 -05:00
tcely b553443255 Copy patches before trying to use them 2025-03-08 10:31:31 -05:00
tcely a00f3e8d65 Speed up arm64 builds
This is the dependency that takes so long to compile that it dominated every other part of the build time.

It's a ~12 MiB wheel when we compile from the latest source.
2025-03-05 08:51:47 -05:00
tcely 5a0d0345a8 Bump ffmpeg 2025-03-04 11:11:40 -05:00
tcely 623affef4a Verify nginx configuration for the image 2025-03-03 10:06:47 -05:00
tcely fd0743986b Restrict PYTHONPYCACHEPREFIX to pipenv
It turns out `apt` and friends don't play nicely with that variable.
2025-02-28 17:41:59 -05:00
tcely 0786933c5f Tweak the comment 2025-02-28 14:04:29 -05:00
tcely fcc37100c3 python -B is well-behaved
Use the `tmpfs` mount on `/cache` instead of `/tmp` to make this faster.
2025-02-28 13:44:19 -05:00
tcely 63f3df1d5c Clean up __pycache__ directories 2025-02-28 12:45:36 -05:00
tcely b4c4825c2a Remove redis-server from Dockerfile 2025-02-24 04:30:59 -05:00
meeb 8cd970d135 Merge pull request #744 from tcely/patch-3
Bump `ffmpeg` build
2025-02-19 13:01:54 +11:00
tcely 852d0cf0f2 Bump ffmpeg build 2025-02-18 19:19:41 -05:00
tcely 74780220f4 Add XDG_CACHE_HOME environment variable 2025-02-18 18:56:12 -05:00
tcely a7f872e902 Merge branch 'main' into patch-3 2025-02-11 15:30:14 -05:00
tcely 2fd5e70486 Use version sorting 2025-02-08 17:22:54 -05:00
tcely c4a4b7fe1b COPY doesn't do any globbing
Use a `python3` symbolic link setup earlier to work around this.
2025-02-08 17:21:10 -05:00
tcely 1d51c6182b COPY doesn't do any globbing
Instead, set up and use a 'python3' symbolic link.
2025-02-08 17:04:33 -05:00
tcely e2680c4b24 Split the COPY line 2025-02-08 13:45:21 -05:00
tcely 294f56d2b2 Do not specify a file to copy 2025-02-07 21:27:21 -05:00
tcely e889c78a48 Patch yt_dlp postprocessor modify_chapters.py 2025-02-07 21:20:31 -05:00
tcely f64432f243 Adjust patch location 2025-02-07 15:45:09 -05:00
tcely 104bac30ba Patch from within the repository 2025-02-06 23:05:58 -05:00
tcely 8efc845228 Patch any python3 version 2025-02-05 22:57:33 -05:00
tcely 1530b6bee1 Patch the logic in locked() 2025-02-05 19:24:35 -05:00
tcely 4ec407cf6f Bump ffmpeg 2025-02-04 13:39:46 -05:00
meeb b38c7d7c7f bump ffmpeg and yt-dlp 2025-01-22 23:59:41 +11:00
tcely ccdd43845c Cache for pipenv & apt
- Consolidate apk & apt commands
- Consolidate ENV layers
- Consolidate RUN layers
- Remove unused variables
- Remove packages that are no longer needed
- Bind mount /app/Pipfile

`/cache` is now a `tmpfs` mount that has a `cache` mount on top for `pipenv` to use.

`apt` has `cache` mounts in the standard places:
- /var/lib/apt
- /var/cache/apt
2025-01-17 12:46:11 -05:00
tcely 862c17b676 Bump ffmpeg & yt-dlp 2025-01-16 03:30:06 -05:00
tcely 53ad31d128 Merge branch 'main' into patch-4 2025-01-15 04:35:43 -05:00
tcely 2860147212 Build on older docker also
* Do without --link for COPY or ADD

* Do without --checksum for ADD

* Trim the FFMPEG_VERSION variable with cut instead

I've built successfully on old Debian systems using these changes. Everything else I use has a newer docker on it.
2025-01-12 04:46:32 -05:00
tcely 5e5d011b64 Add parser directives
This hopefully helps anyone building on an older docker, such as Debian / Ubuntu packaged versions.
2025-01-12 00:49:19 -05:00
tcely ef4181c2c4 Dockerfile syntax and checks
- Specify the syntax be the latest stable version and that failed checks should stop the build.

```
By default, builds with failing build checks exit with a zero status code despite warnings. To make the build fail on warnings, set #check=error=true.
```

- Use the form of health checking that doesn't involve an extra shell on every check.
2025-01-12 00:37:30 -05:00
tcely 4364ebbff3 Multi-stage docker build for ffmpeg & s6-overlay
* Create a s6-overlay-extracted stage to copy from

This was largely inspired by: @socheatsok78

Our downloaded files are checked where that version doesn't do any verification of the downloads.

* Update ffmpeg to the first build with checksums.sha256

* Create a ffmpeg-extracted stage to copy from

* Don't preserve ownership from the builder

I was sick of the extra work with ffmpeg builds.

So, I managed to get sums generated for those builds and now we don't need to manually fill out SHA256 hashes anymore.

Now to bump ffmpeg, we can just change the date.
2025-01-11 11:53:10 -05:00
tcely 7b42213bbb Keep curl and add less
These are very useful when using the shell inside the container and don't use much space.
2025-01-08 00:36:37 -05:00
tcely f0b7d31949 Test and log ffmpeg version output earlier
Running the ffmpeg in an earlier (hopefully cached) layer should clean up the logs a bit.

On a related note, shadowing the environment variable was causing some confusing log output, so stop doing that as well.
2025-01-08 00:31:30 -05:00
meeb b40564ff93 Merge pull request #596 from tcely/patch-8
Reduce image size and keep pycache in a volume
2024-12-26 12:44:42 +11:00
tcely 568698351d Use the N version of ffmpeg 2024-12-25 05:23:53 -05:00