2021-03-17 09:35:56 +00:00
|
|
|
# hadolint ignore=DL3007
|
2021-04-16 12:21:18 +00:00
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
FROM ghcr.io/k8s-at-home/plex:v${VERSION}
|
|
|
|
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
ARG TARGETPLATFORM
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
2021-03-17 09:35:56 +00:00
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
# hadolint ignore=DL3008,DL3015,SC2086
|
2021-03-17 09:35:56 +00:00
|
|
|
RUN \
|
2021-04-16 12:21:18 +00:00
|
|
|
usermod -l apps kah \
|
2021-03-17 09:35:56 +00:00
|
|
|
&& \
|
2021-04-16 12:21:18 +00:00
|
|
|
groupmod -n apps kah \
|
|
|
|
&& chown -R apps:apps /config \
|
|
|
|
&& rm -rf /app/package_info \
|
2021-03-17 09:35:56 +00:00
|
|
|
&& \
|
2021-04-16 12:21:18 +00:00
|
|
|
printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
USER apps
|
2021-03-17 09:35:56 +00:00
|
|
|
|
2021-04-17 15:30:53 +00:00
|
|
|
EXPOSE 32400/tcp 1900/tcp 5353/udp 8324/tcp 32410/udp 32413/udp 32414/udp 32469/udp
|
2021-03-17 09:35:56 +00:00
|
|
|
|
|
|
|
CMD ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
2021-04-16 12:21:18 +00:00
|
|
|
LABEL "authors"="TrueCharts <info@truecharts.org>"
|
|
|
|
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps/tree/master/.containers/apps/plex"
|
|
|
|
LABEL "org.opencontainers.image.documentation "="https://truecharts.org"
|