mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-23 01:01:50 +02:00
cleaning
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
ARG BUILD_FROM=hassioaddons/base:8.0.1
|
||||
# hadolint ignore=DL3006
|
||||
FROM ${BUILD_FROM}
|
||||
ARG BUILD_FROM
|
||||
FROM $BUILD_FROM
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
||||
# Setup base
|
||||
RUN apk add --no-cache \
|
||||
coreutils \
|
||||
nginx \
|
||||
transmission-daemon \
|
||||
openvpn
|
||||
# Small hack needed for ingress support
|
||||
#
|
||||
# Transmission always uses "transmission" as a subdirectory in the URL, so the web interface can for instance be found at:
|
||||
@@ -34,26 +27,7 @@ RUN apk add --no-cache \
|
||||
# when accessing transmission as usual, but stripping the relative part when using ingress.
|
||||
RUN sed -i 's|'"'"'\.\./rpc'"'"'|window.location.pathname.endsWith("/web/") ? "../rpc" : "rpc"|' /usr/share/transmission/web/javascript/remote.js
|
||||
|
||||
# Build arugments
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
# MOFIFY DATA PATH
|
||||
RUN sed -i "s|config|share/transmission|g" /etc/services.d/transmission/run
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.name="Transmission" \
|
||||
io.hass.description="The torrent client for Hass.io with OpenVPN support" \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Pierrick Rouxel <pierrickrouxel@addons.community>" \
|
||||
org.label-schema.description="The torrent client for Hass.io" \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Transmission" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.usage="https://github.com/pierrickrouxel/hassio-addon-transmission/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/pierrickrouxel" \
|
||||
org.label-schema.vendor="Community Hass.io Addons"
|
||||
VOLUME [ "/data" ]
|
||||
|
||||
Reference in New Issue
Block a user