To use update your docker-compose.yml file to include the following:
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.gitYou can fix the version of the image by using a specific tag:
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.git#v1.0.1Run docker-compose up --build to update the image.
The Dockerfile supports optional installation of Puppeteer dependencies (Chrome/Chromium libraries) through the ENABLE_PUPPETEER build argument.
To build the image with Puppeteer support, you can either:
Option 1: Using docker-compose build command
docker-compose build --build-arg ENABLE_PUPPETEER=trueOption 2: In your docker-compose.yml file
project_name-site:
build:
context: https://github.com/TallieuTallieu/dry-docker.git
args:
ENABLE_PUPPETEER: trueOption 3: For local Dockerfile
project_name-site:
build:
context: .
args:
ENABLE_PUPPETEER: trueBy default, Puppeteer dependencies are not installed to keep the image size smaller. Only enable this if your project requires headless browser automation.
You can make changes to the Dockerfile for a specific project by creating a new branch and using this in the build line in the docker-compose.yml file.
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.git#branch_nameOr you can copy and paste the Dockerfile into your project and make changes there.
If you make changes to the Dockerfile, make sure you create a new tag using semantic versioning and describe the changes in the tag description.
git tag -a 1.0.1 -m "Description of changes"
git push origin 1.0.1