chore(docker): volume mapping for dev
This commit is contained in:
15
README.md
15
README.md
@ -52,4 +52,17 @@ The `tauri` version is only here to quickstart future developments but nothing
|
||||
`docker compose --profile prod up`
|
||||
|
||||
### Build and run the dev image
|
||||
`docker compose --profile dev up`
|
||||
|
||||
**First installation**
|
||||
First you need to map node_modules to your local machine for your ide intellisense to work properly
|
||||
```bash
|
||||
docker compose --profile dev up -d
|
||||
docker cp topos-dev:/app/node_modules .
|
||||
docker compose --profile dev down
|
||||
```
|
||||
|
||||
**Then**
|
||||
```bash
|
||||
docker compose --profile dev up
|
||||
```
|
||||
|
||||
|
||||
@ -6,6 +6,16 @@ services:
|
||||
build:
|
||||
context: .
|
||||
target: "dev"
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
- ./fonts:/app/fonts
|
||||
- ./img:/app/img
|
||||
- ./package.json:/app/package.json
|
||||
- ./postcss.config.js:/app/postcss.config.js
|
||||
- ./tailwind.config.js:/app/tailwind.config.js
|
||||
- ./tsconfig.json:/app/tsconfig.json
|
||||
- ./vite.config.js:/app/vite.config.js
|
||||
- ./yarn.lock:/app/yarn.lock
|
||||
ports:
|
||||
- "8000:8000"
|
||||
topos-prod:
|
||||
|
||||
Reference in New Issue
Block a user