Files
ha-addon/bitlab-s3-backup/Dockerfile
2024-04-03 14:44:29 +02:00

41 lines
1.1 KiB
Docker
Executable File

ARG BUILD_FROM
FROM ${BUILD_FROM}
ENV LANG C.UTF-8
COPY run.sh /
RUN chmod a+x /run.sh
# add aws-cli and deps
RUN apk add -v --update --no-cache \
python3 \
py3-pip \
groff \
less \
jq \
aws-cli
#RUN pip3 install --upgrade awscli
CMD [ "/run.sh" ]
# Build arugments
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="bitlab S3 backup" \
io.hass.description="Automatically create and transfer HA backups" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Alain Stucki <as@bitlab.ch" \
org.label-schema.description="Automatically create and transfer HA backups" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="bitlab S3 Backup" \
org.label-schema.schema-version="1.0" \
org.label-schema.usage="https://git.bitlab.ch/bitlab/ha-addon/-/raw/main/amazon-s3-backup/DOCS.md" \
org.label-schema.vcs-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://git.bitlab.ch/bitlab/ha-addon.git" \
org.label-schema.vendor="bitlab Home Assistant Addons"