There was an error while loading. Please reload this page.
Build the Docker Image without using cached versions of previous image build stages.
sudo docker build \ -f php-7-4-apache.Dockerfile \ --target php-7-4-build \ --build-arg APP_ENV=local \ --build-arg NPM_VERSION=7.24.2 \ --no-cache \ -t php-7-4-web-server:latest \ .
Using -f php-7-4-apache.Dockerfile
-f php-7-4-apache.Dockerfile
To specify the filename to build otherwise it is expected to be named Dockerfile.
Dockerfile
Using --target php-7-4-build
--target php-7-4-build
To select the build target stage from the Dockerfile, used mostly in Multi Stage image builds.
Using --build-arg ARG=value
--build-arg ARG=value
To set build argument values to use.