Skip to content

Commit 19948c3

Browse files
committed
chore: remove node_modules from volume exclude in compose.yml file
1 parent 07abab2 commit 19948c3

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ To build an image, navigate to the root of the project and run this command:
2727
podman-compose build
2828
```
2929

30-
#### Copy `node_modules` Locally
31-
If you need to copy `node_modules` directory from the container to your local machine, run this command:
32-
```bash
33-
podman cp php-revival-landing:/app/node_modules .
34-
```
35-
36-
> [!NOTE]
37-
> `node_modules` is excluded from using volume in [compose.yml](compose.yml) file, that's why you need to copy it manually. It's done to prevent your local modules to be copied to Linux container, since it can create incompatibility issues between operating systems if you don't use Linux.
38-
3930
#### Run the Container
4031
To run a container, navigate to the root of the project and run this command:
4132
```bash

compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ services:
99
dockerfile: Composefile
1010
volumes:
1111
- .:/app:z
12-
- /app/node_modules
1312
ports:
1413
- 3000:3000

0 commit comments

Comments
 (0)