Update Dockerfile to use workspaces setup

The main Cal.com project has started using Yarn workspaces to
break the project up into separate packages and treat the project
as a monorepo. This required quite a few changes to the Dockerfile
that assumed the previous project setup.

Signed-off-by: Alex Sears <me@alexsears.com>
This commit is contained in:
Alex Sears
2022-02-17 16:04:27 -05:00
parent f3942ca6f5
commit 05560ff1a3
4 changed files with 27 additions and 22 deletions

View File

@@ -54,7 +54,7 @@ wait_for() {
;;
wget)
if ! command -v wget >/dev/null; then
echoerr 'nc command is missing!'
echoerr 'wget command is missing!'
exit 1
fi
;;
@@ -62,11 +62,11 @@ wait_for() {
while :; do
case "$PROTOCOL" in
tcp)
tcp)
nc -w 1 -z "$HOST" "$PORT" > /dev/null 2>&1
;;
http)
wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
wget --timeout=1 -q "$HOST" -O /dev/null > /dev/null 2>&1
;;
*)
echoerr "Unknown protocol '$PROTOCOL'"
@@ -75,7 +75,7 @@ wait_for() {
esac
result=$?
if [ $result -eq 0 ] ; then
if [ $# -gt 7 ] ; then
for result in $(seq $(($# - 7))); do
@@ -181,4 +181,4 @@ case "$PROTOCOL" in
;;
esac
wait_for "$@"
wait_for "$@"