Skip to content

Commit

Permalink
useful mount style
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 1, 2024
1 parent d1a8963 commit 0bcf477
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
},
"dockerComposeFile": "../compose.yaml",
"service": "dev",
"workspaceFolder": "/usr/src/php/ext/extension"
"workspaceFolder": "/work"
}
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ RUN if test -f "/etc/debian_version"; then \
docker-php-source delete; \
fi; \
fi && \
docker-php-source extract
docker-php-source extract && \
ln -s "/usr/src/php/build/gen_stub.php" "/usr/local/bin/gen_stub.php" && \
apt-get update && apt-get install -y "git"

WORKDIR "/usr/src/php"

Expand Down
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ services:
- seccomp:unconfined
privileged: true
volumes:
- ./ext:/usr/src/php/ext/extension:cached
- ./ext:/usr/src/php/ext/extension
- ./:/work
tty: true
depends_on:
- mysql
Expand Down

0 comments on commit 0bcf477

Please sign in to comment.