File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ Use the following instructions to start the Project with docker compose.
124
124
125
125
126
126
# ## Format with Prettier
127
-
127
+ Run the following command to format files with Prettier:
128
128
` ` ` shell
129
129
docker compose exec node prettier --write src/
130
130
` ` `
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ services:
9
9
build :
10
10
context : .
11
11
dockerfile : dev/web/Dockerfile
12
+ # Use Bash instad of sh (Dash) for improved signal handling
12
13
command : /bin/bash -c "
13
- echo 'Starting static webserver at http://127.0.0.1:8080/'
14
- && /usr/local/bin/httpd-foreground
14
+ echo 'Starting static webserver at http://127.0.0.1:8080/';
15
+ /usr/local/bin/httpd-foreground
15
16
"
16
17
container_name: cc-search-web
17
18
ports:
@@ -30,10 +31,15 @@ services:
30
31
build:
31
32
context: .
32
33
dockerfile: dev/node/Dockerfile
33
- # continue running until shutdown (this allows docker compose exec which is
34
+ # Continue running until shutdown (this allows docker compose exec which is
34
35
# much faster than docker compose run)
35
36
# Thank you: https://serverfault.com/a/1084975
36
- command: sh -c 'trap " exit" TERM; while true; do sleep 1; done'
37
+ command: /bin/sh -c "
38
+ trap 'exit' TERM;
39
+ echo 'Run the following command to format files with Prettier:';
40
+ echo ' docker compose exec node prettier --write src/';
41
+ while true; do sleep 1; done
42
+ "
37
43
container_name: cc-search-node
38
44
volumes:
39
45
# Mount repository to working directory
You can’t perform that action at this time.
0 commit comments