ARG BUILD_FROM=hassioaddons/base:2.3.2 # hadolint ignore=DL3006 FROM ${BUILD_FROM} # Set shell SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Sets working directory WORKDIR /opt # Setup base RUN \ apk add --no-cache \ apache2-utils=2.4.38-r3 \ nginx=1.14.2-r0 \ php7-curl=7.2.13-r0 \ php7-fileinfo=7.2.13-r0 \ php7-fpm=7.2.13-r0 \ php7-json=7.2.13-r0 \ php7-opcache=7.2.13-r0 \ php7-openssl=7.2.13-r0 \ php7-phar=7.2.13-r0 \ php7-session=7.2.13-r0 \ php7-sockets=7.2.13-r0 \ php7-sqlite3=7.2.13-r0 \ php7-zip=7.2.13-r0 \ php7-simplexml=7.2.13-r0 \ php7-xml=7.2.13-r0 \ \ && mkdir -p /opt \ \ && curl -J -L -o /tmp/web.zip \ "https://github.com/d8ahazard/Phlex/archive/01fce9237e727deb69fc81da56cb77687e2ee2a8.zip" \ \ && unzip -d /tmp /tmp/web.zip \ && mv /tmp/Phlex-*/* /opt \ \ && rm -fr /tmp/* # Copy root filesystem COPY rootfs / # Build arguments ARG BUILD_ARCH ARG BUILD_DATE ARG BUILD_REF ARG BUILD_VERSION # Labels LABEL \ io.hass.name="Phlex" \ io.hass.description="A super-sexy text and voice interface for Plex" \ io.hass.arch="${BUILD_ARCH}" \ io.hass.type="addon" \ io.hass.version=${BUILD_VERSION} \ maintainer="Joakim Sørensen @ludeeus " \ org.label-schema.description="A super-sexy text and voice interface for Plex" \ org.label-schema.build-date=${BUILD_DATE} \ org.label-schema.name="Phlex" \ org.label-schema.schema-version="1.0" \ org.label-schema.url="https://community.home-assistant.io/t/community-hass-io-add-ons-phlex/70378" \ org.label-schema.usage="https://github.com/hassio-addons/addon-phlex/tree/master/README.md" \ org.label-schema.vcs-ref=${BUILD_REF} \ org.label-schema.vcs-url="https://github.com/hassio-addons/addon-phlex" \ org.label-schema.vendor="Community Hass.io Add-ons"