diff --git a/Dockerfile b/Dockerfile index ccd5ae6..9553eca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ +# Stage 1: Build Nginx +FROM alpine:3.20.3 AS builder + # Variables ARG NGINX_VERSION="1.27.1" ARG PHP_VERSION="8.3" -# Stage 1: Build Nginx -FROM alpine:3.20.3 AS builder +# Print versions +RUN echo "NGINX_VERSION=${NGINX_VERSION}" +RUN echo "PHP_VERSION=${PHP_VERSION}" # Install build dependencies and required tools RUN apk update && apk upgrade && \ @@ -57,4 +61,4 @@ RUN rm -rf /var/cache/apk/* STOPSIGNAL SIGTERM # Start server -CMD ["sh", "/start.sh"] \ No newline at end of file +CMD ["sh", "/start.sh"]