mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* configurator: Add git SSH support Add "ssh_keys" option to the Configurator add-on to define SSH keys for use by git. * Bump version to 3.5
21 lines
625 B
Docker
21 lines
625 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Setup base
|
|
ARG CONFIGURATOR_VERSION
|
|
ARG HASSIO_AUTH_VERSION
|
|
RUN apk add --no-cache \
|
|
git nginx nginx-mod-http-lua lua-resty-http openssh-client \
|
|
&& git clone --depth 1 -b ${HASSIO_AUTH_VERSION} \
|
|
"https://github.com/home-assistant/hassio-auth" \
|
|
&& cp -f hassio-auth/nginx-frontend/ha-auth.lua /etc/nginx/ \
|
|
&& cp -f hassio-auth/nginx-frontend/example/nginx-ingress.conf /etc/nginx/ \
|
|
&& rm -fr /usr/src/hassio-auth \
|
|
&& pip install hass-configurator==${CONFIGURATOR_VERSION}
|
|
|
|
# Copy data
|
|
COPY data/configurator.conf /etc/
|
|
COPY data/run.sh /
|
|
|
|
CMD ["/run.sh"]
|