-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 842 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ghcr.io/rkojedzinszky/webhost-images/php84:20251006
LABEL org.opencontainers.image.authors "Richard Kojedzinszky <richard@kojedz.in>"
LABEL org.opencontainers.image.source https://github.com/kubernetize/postfixadmin
ARG POSTFIXADMIN_VER=4.0.1
USER 0
RUN \
apk --no-cache add -t build-deps curl tar && \
mkdir -p /var/www/html && \
curl -sL https://github.com/postfixadmin/postfixadmin/archive/refs/tags/postfixadmin-${POSTFIXADMIN_VER}.tar.gz | \
tar xzf - -C /var/www/html --strip-components=1 && \
ln -sf php84 /usr/bin/php && \
sh /var/www/html/install.sh && \
rm /var/www/html/composer.phar /usr/bin/php && \
apk --no-cache del build-deps && \
sed -i -e "s,/var/www/html,/var/www/html/public,g" /etc/apache2/conf.d/00-default.conf && \
chown 8080:8080 /var/www/html/templates_c
USER 8080