Skip to content

Commit

Permalink
chore: symlink project dir in Docker
Browse files Browse the repository at this point in the history
This reduces the need to keep building the image between changes to test
files
  • Loading branch information
simonsmith committed Dec 29, 2023
1 parent c733893 commit f2472ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ WORKDIR /home/cypress-image-snapshot

COPY . .

RUN corepack prepare [email protected] --activate && \
RUN corepack enable && \
corepack prepare [email protected] --activate && \
yarn set version 3.5.0
RUN yarn install
RUN yarn build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"lint:eslint": "eslint --ext .ts,.json .",
"lint:commits": "commitlint --from=HEAD~$(git --no-pager rev-list origin/master..HEAD --count)",
"docker:build": "docker build -t cypress-image-snapshot .",
"docker:run": "docker run -it --env CYPRESS_updateSnapshots --env CYPRESS_debugSnapshots -v ./cypress:/home/cypress-image-snapshot/cypress cypress-image-snapshot",
"docker:run": "docker run -it --env CYPRESS_updateSnapshots --env CYPRESS_debugSnapshots -v $PWD:/home/cypress-image-snapshot cypress-image-snapshot",
"cypress:open": "cypress open --env debugSnapshots=true,failOnSnapshotDiff=false --browser electron --e2e",
"cypress:run": "cypress run --browser electron",
"cypress:server": "http-server -s -p 9001 -c-1 ./cypress/server &",
Expand Down

0 comments on commit f2472ed

Please sign in to comment.