forked from danmed/TasmoBackupV1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (34 loc) · 1.5 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG BUILD_FROM=patrickdk/docker-php-nginx:latest
ARG BUILD_FROM_PREFIX
FROM ${BUILD_FROM}${BUILD_FROM_PREFIX}
ARG BUILD_ARCH
ARG QEMU_ARCH
WORKDIR /
COPY install.sh qemu-${QEMU_ARCH}-static* /usr/bin/
COPY --chown=www-data . /var/www/html/
RUN echo "Start" \
&& rm -f /var/www/html/install.sh /var/www/html/qemu-*-static \
&& chmod 755 /usr/bin/install.sh \
&& echo '8 * * * * /usr/bin/wget -O - "http://127.0.0.1/backupall.php?docker=true" 1>/dev/null 2>/dev/null ' > /etc/crontabs/root \
&& echo "Done"
CMD [ "/usr/bin/install.sh", "/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf" ]
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
LABEL maintainer="Dan Medhurst ([email protected])" \
Description="Manage Tasmota scheduled backups and restores." \
ForkedFrom="" \
io.hass.name="TasmoBackup" \
io.hass.description="Manage Tasmota scheduled backups and restores." \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
org.label-schema.schema-version="1.0" \
org.label-schema.build-date="${BUILD_DATE}" \
org.label-schema.name="TasmoBackup" \
org.label-schema.description="Manage Tasmota scheduled backups and restores." \
org.label-schema.url="https://github.com/danmed/TasmoBackupV1" \
org.label-schema.usage="https://github.com/danmed/TasmoBackupV1/tree/master/README.md" \
org.label-schema.vcs-url="https://github.com/danmed/TasmoBackupV1" \
org.label-schema.vcs-ref="${BUILD_REF}" \
org.label-schema.version="${BUILD_VERSION}"