Skip to content

Commit 90c2a83

Browse files
committed
make boot.sh run as process 0
so it correctly receives and forwards signals
1 parent 6f49345 commit 90c2a83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN chmod +x /usr/src/app/build-production.sh
2424

2525
EXPOSE ${PORT}
2626

27-
CMD sh boot.sh
27+
CMD /usr/src/app/boot.sh
2828

2929
# This stuff only runs when building an image from the template
3030
ONBUILD RUN rm -Rf /app/scripts

boot.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12
if [ "$NODE_ENV" == "development" ]
23
then
34
# Run live-reload development

0 commit comments

Comments
 (0)