Skip to content

Commit

Permalink
build: docker development build
Browse files Browse the repository at this point in the history
Alter `docker-compose.dev.yml` to mount the local `components` and `pages` directories. Run `yarn dev` instead of `yarn start`.
  • Loading branch information
eatyourgreens committed Nov 17, 2024
1 parent f95a376 commit b81562c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ services:
build:
context: .
dockerfile: Dockerfile
target: builder
args:
CACHE_BUST: ${CACHE_BUST}
MATERIAL_METHOD: "pull"
MATERIAL_DIR: ".material"
YAML_TEMPLATE: "config/oxford.yaml"
command: "yarn dev"
volumes:
- ./components:/app/components
- ./pages:/app/pages
ports:
- "3000:3000"
links:
Expand Down

0 comments on commit b81562c

Please sign in to comment.