docker-alpine-php83-aio/Dockerfile

23 lines
754 B
Docker
Raw Normal View History

2024-02-05 23:20:42 +00:00
# NoccyLabs Alpine Nginx+PHP 8.3 Base Image
FROM alpine:3.19
RUN apk add --no-cache \
php83-fpm php83-cli \
php83-curl php83-iconv php83-gd php83-mbstring php83-posix \
php83-phar php83-openssl php83-ctype php83-tokenizer php83-xml php83-session \
php83-dom php83-pecl-imagick php83-zip php83-xmlwriter php83-simplexml php83-xmlreader \
php83-pdo php83-pdo_sqlite php83-pdo_mysql php83-fileinfo php83-exif \
tini \
nginx \
supervisor
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY ./config/supervisor/* /etc/supervisor.d/
COPY ./config/frameworks/* /scripts/frameworks/
COPY ./config/entrypoint.sh /scripts/entrypoint.sh
ENTRYPOINT [ "/sbin/tini", "--" ]
CMD /scripts/entrypoint.sh
WORKDIR /application
EXPOSE 80