2021-03-17 09:35:56 +00:00
|
|
|
# hadolint ignore=DL3007
|
|
|
|
ARG VERSION
|
|
|
|
|
2021-04-16 12:21:18 +00:00
|
|
|
FROM ghcr.io/k8s-at-home/transmission: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
|
|
|
|
|
|
|
USER apps
|
|
|
|
|
2021-04-17 15:30:53 +00:00
|
|
|
EXPOSE 51413 ${WEBUI_PORT}
|
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/transmission"
|
|
|
|
LABEL "org.opencontainers.image.documentation "="https://truecharts.org"
|