docker-mods/Dockerfile
TheCaptain989 7c16d430d4 Lidarr: flac2mp3 Release 2.3
## What's Changed
- **Complete re-write of the core script to use shell instead of AWK.**
- **New:** Better use of the Lidarr API, including:
  - Using it to delete or recycle old tracks
  - No more artist refresh/rescan (which took forever) (issue thecaptain989/lidarr-flac2mp3#39)
  - Imports the converted tracks directly
- Fixed logging of curl errors and improved error handling
- Removed unnecessary function
- Improved track import JSON generator logic
- Added check for 'queued'  job status
- Use tag or branch name as Docker image tag
- Added GitHub Container Registry push
- Added GitHub container Registry labels
2023-08-27 15:53:25 -05:00

25 lines
562 B
Docker

# syntax=docker/dockerfile:1
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 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/flac2mp3.sh \
/root-layer/etc/s6-overlay/s6-rc.d/init-mod-lidarr-flac2mp3-add-package/run
## Single layer deployed image ##
FROM scratch
LABEL maintainer="TheCaptain989"
# Add files from buildstage
COPY --from=buildstage /root-layer/ /