-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·76 lines (71 loc) · 2.49 KB
/
Dockerfile
File metadata and controls
executable file
·76 lines (71 loc) · 2.49 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ARG BUILD_FROM=ghcr.io/hassio-addons/base:20.0.4
# hadolint ignore=DL3006
FROM ${BUILD_FROM}
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Setup base
# hadolint ignore=DL3003
RUN \
apk add --no-cache \
mariadb-client=11.4.8-r0 \
nginx=1.28.0-r3 \
php82-curl=8.2.30-r0 \
php82-fpm=8.2.30-r0 \
php82-gd=8.2.30-r0 \
php82-iconv=8.2.30-r0 \
php82-mbstring=8.2.30-r0 \
php82-mysqli=8.2.30-r0 \
php82-opcache=8.2.30-r0 \
php82-openssl=8.2.30-r0 \
php82-session=8.2.30-r0 \
php82-xml=8.2.30-r0 \
php82-zip=8.2.30-r0 \
php82=8.2.30-r0 \
\
&& mkdir /var/www/phpmyadmin \
&& curl -L -s \
"https://files.phpmyadmin.net/phpMyAdmin/5.2.3/phpMyAdmin-5.2.3-all-languages.tar.gz" \
| tar zxvf - --strip 1 -C /var/www/phpmyadmin \
\
&& sed -i "s@'configFile' =>.*@'configFile' => '/etc/phpmyadmin/config.inc.php',@" \
/var/www/phpmyadmin/libraries/vendor_config.php \
\
&& find /var/www/ -type f -name "*.md" -depth -exec rm -f {} \; \
&& rm -f -r \
/tmp/* \
/etc/nginx \
/var/www/phpmyadmin/setup \
/var/www/phpmyadmin/examples \
/var/www/phpmyadmin/test/ \
/var/www/phpmyadmin/po \
/var/www/phpmyadmin/composer.json \
/var/www/phpmyadmin/RELEASE-DATE-*
# Copy root filesystem
COPY rootfs /
# Build arguments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_DESCRIPTION
ARG BUILD_NAME
ARG BUILD_REF
ARG BUILD_REPOSITORY
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="${BUILD_NAME}" \
io.hass.description="${BUILD_DESCRIPTION}" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.title="${BUILD_NAME}" \
org.opencontainers.image.description="${BUILD_DESCRIPTION}" \
org.opencontainers.image.vendor="Home Assistant Community Add-ons" \
org.opencontainers.image.authors="Franck Nijhof <frenck@addons.community>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.url="https://addons.community" \
org.opencontainers.image.source="https://github.com/${BUILD_REPOSITORY}" \
org.opencontainers.image.documentation="https://github.com/${BUILD_REPOSITORY}/blob/main/README.md" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REF} \
org.opencontainers.image.version=${BUILD_VERSION}