FROM alpine:3.15

RUN \
  apk -U upgrade && \
  apk add tini nginx openssh-server \
    php7 php7-fpm php7-mbstring php7-curl php7-ctype php7-dom php7-gd php7-json php7-openssl php7-session php7-simplexml php7-xml php7-zip \
    php7-apcu php7-opcache php7-pecl-yaml php7-sqlite3 php7-mysqli

COPY rootfs-php74 /

VOLUME [ "/data/www", "/ssh" ]

ENV \
  USERNAME=theuser \
  PHP=none \
  PUID=1000 \
  PGID=1000 \
  TZ=Etc/UTC

ENTRYPOINT [ "/sbin/tini", "/app/entrypoint.sh" ]