added php support

This commit is contained in:
gyurix
2024-07-01 08:50:03 +02:00
parent ab5ca570b7
commit 725498a0d3
2 changed files with 11 additions and 2 deletions

View File

@@ -1,10 +1,11 @@
FROM alpine:latest
ENV NGINX_VERSION=1.25.4
ARG PHP_VERSION="8.2.20"
RUN \
build_pkgs="build-base linux-headers openssl-dev pcre-dev wget zlib-dev" && \
runtime_pkgs="ca-certificates openssl pcre zlib tzdata git" && \
runtime_pkgs="ca-certificates openssl pcre zlib tzdata " && \
apk --no-cache add ${build_pkgs} ${runtime_pkgs} && \
cd /tmp && \
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && \
@@ -56,6 +57,9 @@ RUN \
apk del ${build_pkgs} && \
rm -rf /var/cache/apk/*
RUN apk --no-cache add php8=${PHP_VERSION} \
php8-curl
COPY nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /usr/share/nginx/html