docker-mods/Dockerfile
TheCaptain989 d6d6f069f3
Release 2.7.1
# What's Changed
- **New** Uses semantic versioning
- **New** Added installation script and documentation for hotio containers
- **Fixes** TheCaptain989/radarr-striptracks#73
- Light editing of README
  - Added GHCR pull counts
- Updated Docker image labeling
2024-08-15 18:51:17 -05:00

30 lines
1.0 KiB
Docker

# syntax=docker/dockerfile:1
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 as buildstage
ARG MOD_VERSION
# copy local files
COPY root/ /root-layer/
# Add version to script
RUN \
MOD_VERSION="${MOD_VERSION:-unknown}" && \
sed -i -e "s/{{VERSION}}/$MOD_VERSION/" \
/root-layer/usr/local/bin/striptracks.sh \
/root-layer/etc/s6-overlay/s6-rc.d/init-mod-radarr-striptracks-add-package/run
## Single layer deployed image ##
FROM scratch
ARG MOD_VERSION
LABEL org.opencontainers.image.title=radarr-striptracks
LABEL org.opencontainers.image.description="A Docker Mod to Radarr/Sonarr to automatically strip out unwanted audio and subtitle streams"
LABEL org.opencontainers.image.version="${MOD_VERSION}"
LABEL org.opencontainers.image.source="https://github.com/TheCaptain989/radarr-striptracks"
LABEL org.opencontainers.image.authors="TheCaptain989 <thecaptain989@protonmail.com>"
LABEL org.opencontainers.image.licenses=GPL-3.0-only
# Add files from buildstage
COPY --from=buildstage /root-layer/ /