mirror of
https://github.com/hassio-addons/addon-ssh.git
synced 2025-05-07 04:21:22 +00:00
✨ Added Docker label schema
This commit is contained in:
parent
de5e163cc6
commit
7c9e5ad24a
1 changed files with 23 additions and 3 deletions
|
@ -1,10 +1,8 @@
|
|||
ARG BUILD_FROM=hassioaddons/base-amd64
|
||||
FROM ${BUILD_FROM}
|
||||
MAINTAINER Franck Nijhof <frenck@geekchimp.com>
|
||||
|
||||
# Add env
|
||||
ENV LANG="C.UTF-8" \
|
||||
TERM="xterm-256color"
|
||||
ENV TERM="xterm-256color"
|
||||
|
||||
# Copy data
|
||||
COPY files/run.sh /
|
||||
|
@ -28,3 +26,25 @@ RUN apk add --no-cache jq openssh sudo zsh openssl libxml2-utils ncurses \
|
|||
chmod 0600 /var/log/btmp
|
||||
|
||||
CMD [ "/run.sh" ]
|
||||
|
||||
# Build arugments
|
||||
ARG BUILD_ARCH
|
||||
ARG BUILD_DATE
|
||||
ARG BUILD_REF
|
||||
ARG BUILD_VERSION
|
||||
|
||||
# Labels
|
||||
LABEL \
|
||||
io.hass.arch="${BUILD_ARCH}" \
|
||||
io.hass.type="addon" \
|
||||
io.hass.version=${BUILD_VERSION} \
|
||||
maintainer="Franck Nijhof <frenck@addons.community>" \
|
||||
org.label-schema.description="SSH add-on for Hass.io" \
|
||||
org.label-schema.build-date=${BUILD_DATE} \
|
||||
org.label-schema.name="Hass.io SSH add-on for ${BUILD_ARCH}" \
|
||||
org.label-schema.schema-version="1.0" \
|
||||
org.label-schema.url="https://addons.community" \
|
||||
org.label-schema.usage="https://github.com/hassio-addons/addon-ssh/tree/master/README.md" \
|
||||
org.label-schema.vcs-ref=${BUILD_REF} \
|
||||
org.label-schema.vcs-url="https://github.com/hassio-addons/addon-ssh" \
|
||||
org.label-schema.vendor="Community Hass.io Addons"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue