Skip to content

Commit

Permalink
devcontainer: Update docker-compose command in compose.yaml to instal…
Browse files Browse the repository at this point in the history
…l dependencies before running dev command
  • Loading branch information
hakatashi committed Oct 7, 2024
1 parent d9c368c commit 71e139b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
- ..:/code
stdin_open: true
tty: true
command: npm run dev -- --only better-custom-response
command: sh -c "npm install && npm run dev -- --only better-custom-response"
environment:
- TEAM_ID=${TEAM_ID}
- SIGNING_SECRET=${SIGNING_SECRET}
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tunnel"
],
"postAttachCommand": "docker logs slackbot_devcontainer-tunnel-1 && docker attach slackbot_devcontainer-tunnel-1",
"onCreateCommand": "echo 'onCreate: Please run `docker-compose up` to start the services.'",
"onCreateCommand": "cp -RTf ~/.cache/slackbot/node_modules /code/node_modules && cp -RTf ~/.cache/slackbot-functions/node_modules /code/functions/node_modules",
"postStartCommand": "echo 'postStart: Please run `docker-compose up` to start the services.'",
"postCreateCommand": "echo 'postCreate: Please run `docker-compose up` to start the services.'",
"initializeCommand": "echo 'initialize: Please run `docker-compose up` to start the services.'",
Expand Down

0 comments on commit 71e139b

Please sign in to comment.