-
Notifications
You must be signed in to change notification settings - Fork 0
Build Image
Evil Wizard edited this page Feb 18, 2023
·
11 revisions
Build the Docker Image without using cached versions of previous image build stages.
A helper script is available with the repo to force recreate the build & use the docker-compose.yaml file which reads the .env file.
./build-web.shsudo docker build \
-f php-5-6-apache.Dockerfile \
--target php-5-6-build \
--build-arg APP_ENV=local \
--build-arg NPM_VERSION=6.4.1 \
--no-cache \
-t php-5-6-web-server:latest \
.-
Using
-f php-5-6-apache.DockerfileTo specify the filename to build otherwise it is expected to be named
Dockerfile. -
Using
--target php-5-6-buildTo select the build target stage[^multi_stage_builds_note] from the Dockerfile.
-
Using
--build-arg ARG=valueTo set build argument values to use.