Skip to content

Commit

Permalink
Update base image Version and PHP Version (#15)
Browse files Browse the repository at this point in the history
-Alpine Version 3.17
- PHP Version 8.1
  • Loading branch information
merzi authored Dec 4, 2022
1 parent f4ce1f6 commit 9a4c829
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
27 changes: 14 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
FROM alpine:3.15
FROM alpine:3.17

LABEL description="PostfixAdmin is a web based interface used to manage mailboxes"

ARG VERSION=3.3.11
ARG PHP_VERSION=81
ARG SHA256_HASH="bcbee633e845f730bef7b01912da12574b6766f4f7560edc28891ff644596c22"

RUN set -eux; \
apk update && apk upgrade; \
apk add --no-cache \
su-exec \
dovecot \
tini \
\
php8 \
php8-fpm \
php8-imap \
php8-mbstring \
php8-mysqli \
php8-pdo \
php8-pdo_mysql \
php8-pdo_pgsql \
php8-pgsql \
php8-phar \
php8-session \
php${PHP_VERSION} \
php${PHP_VERSION}-fpm \
php${PHP_VERSION}-imap \
php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-mysqli \
php${PHP_VERSION}-pdo \
php${PHP_VERSION}-pdo_mysql \
php${PHP_VERSION}-pdo_pgsql \
php${PHP_VERSION}-pgsql \
php${PHP_VERSION}-phar \
php${PHP_VERSION}-session \
; \
\
PFA_TARBALL="postfixadmin-${VERSION}.tar.gz"; \
Expand Down
4 changes: 2 additions & 2 deletions bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ cat > /postfixadmin/config.local.php <<EOF
EOF

# Upgrade
php8 /postfixadmin/public/upgrade.php
php /postfixadmin/public/upgrade.php
# RUN !
exec su-exec $UID:$GID php8 -S 0.0.0.0:8888 -t /postfixadmin/public
exec su-exec $UID:$GID php -S 0.0.0.0:8888 -t /postfixadmin/public

0 comments on commit 9a4c829

Please sign in to comment.