Skip to content

Commit 8e68c65

Browse files
authored
docs: put PATH at end of build CLI examples (#1419)
1 parent 8edf148 commit 8e68c65

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

base/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,6 @@ We build the new image, run the container from the image and execute the Cypress
5959
```shell
6060
cd examples/basic # Use a pre-configured simple Cypress E2E project
6161
npm ci # Install Cypress
62-
docker build . -f Dockerfile.base -t test-base # Build a new image
62+
docker build -f Dockerfile.base -t test-base . # Build a new image
6363
docker run -it --rm --entrypoint bash test-base -c "npx cypress run" # Run Cypress test in container
6464
```

browsers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ We build the new image, run the container from the image and execute the Cypress
6868
```shell
6969
cd examples/basic # Use a pre-configured simple Cypress E2E project
7070
npm ci # Install Cypress
71-
docker build . -f Dockerfile.browsers -t test-browsers # Build a new image
71+
docker build -f Dockerfile.browsers -t test-browsers . # Build a new image
7272
docker run -it --rm --entrypoint bash test-browsers -c "npx cypress run -b chrome" # Run Cypress test in container using Chrome
7373
```

examples/chromium/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ We build the new image, run the container from the image and execute the Cypress
6060
```shell
6161
cd examples/chromium # Use a pre-configured simple Cypress E2E project
6262
npm ci # Install all dependencies
63-
docker build . -t test-chromium # Build a new image
63+
docker build -t test-chromium . # Build a new image
6464
docker run -it --rm --entrypoint bash test-chromium -c "npx cypress run --browser chromium" # Run Cypress test using Chromium
6565
```

examples/firefox-esr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ We build the new image, run the container from the image and execute the Cypress
6262
```shell
6363
cd examples/firefox-esr # Use a pre-configured simple Cypress E2E project
6464
npm ci # Install all dependencies
65-
docker build . -t test-firefox-esr # Build a new image
65+
docker build -t test-firefox-esr . # Build a new image
6666
docker run -it --rm --entrypoint bash test-firefox-esr -c "npx cypress run --browser firefox" # Run Cypress test using Firefox ESR
6767
```

factory/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ RUN npx cypress install
180180
Then, in the same directory as the `Dockerfile`, run the following commands to build the Docker image and run Cypress against the Chrome browser.
181181

182182
```bash
183-
docker build . -t test
183+
docker build -t test .
184184
docker run -it --rm test npx cypress run -b chrome
185185
```
186186

@@ -202,7 +202,7 @@ RUN npx cypress install
202202
Run the Docker commands:
203203

204204
```bash
205-
docker build . --build-arg CHROME_VERSION='139.0.7258.154-1' --build-arg EDGE_VERSION='139.0.3405.125-1' --build-arg FIREFOX_VERSION='142.0.1' -t test
205+
docker build --build-arg CHROME_VERSION='139.0.7258.154-1' --build-arg EDGE_VERSION='139.0.3405.125-1' --build-arg FIREFOX_VERSION='142.0.1' -t test .
206206
docker run -it --rm test npx cypress run -b chrome
207207
```
208208

@@ -264,7 +264,7 @@ RUN npx cypress install
264264
Then, in the same directory as the `Dockerfile`, run the following commands to build the Docker image and run Cypress against the Chrome browser.
265265

266266
```bash
267-
docker build . -t test
267+
docker build -t test .
268268
docker run -it --rm test npx cypress run -b chrome
269269
```
270270

@@ -277,7 +277,7 @@ To build a custom image behind a corporate proxy, it is possible to set the opti
277277
Example with the `--build-arg` flag :
278278

279279
```bash
280-
docker build . --build-arg HTTP_PROXY=http://my-corporate-proxy.com:3128 -t test
280+
docker build --build-arg HTTP_PROXY=http://my-corporate-proxy.com:3128 -t test .
281281
```
282282

283283
## Version Testing

0 commit comments

Comments
 (0)