Skip to content

Commit a126e08

Browse files
committed
chore: remove node_modules from volume exclude in compose.yml file
1 parent 6e2e5a4 commit a126e08

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ podman-compose up -d
3333

3434
You can visit `http://localhost:3000` to see your documentation.
3535

36-
#### Copy `node_modules` Locally
37-
If you need to copy `node_modules` directory from the container to your local machine, run this command:
38-
```bash
39-
podman cp ago-docs:/app/node_modules .
40-
```
41-
42-
> [!NOTE]
43-
> `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.
44-
4536
#### Enter the container
4637
To enter inside of the container, run this command:
4738
```bash
@@ -50,7 +41,6 @@ podman-compose exec app sh
5041

5142
You'll be able to run NPM commands inside of the container.
5243

53-
5444
#### Stop the container
5545
After you are done working, run this to cleanup containers:
5646
```bash

compose.yml

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

0 commit comments

Comments
 (0)