diff --git a/deploy/docker/route-tests/Dockerfile b/deploy/docker/route-tests/Dockerfile index f465f4527c..1b45886948 100644 --- a/deploy/docker/route-tests/Dockerfile +++ b/deploy/docker/route-tests/Dockerfile @@ -1,7 +1,22 @@ -FROM node:lts-alpine +FROM appsmith/base-ce:release -RUN apk add --no-cache bash caddy \ - && apk add --no-cache hurl mkcert --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ +SHELL ["bash", "-eux", "-c"] + +RUN < "$WWW_PATH/index.html" +# Fake files needed by the caddy-reconfigure script +mkdir -p "$WWW_PATH" /opt/appsmith/editor +echo -n 'index.html body, this will be replaced' > "$WWW_PATH/index.html" +echo '{}' > /opt/appsmith/info.json +echo -n 'actual index.html body' > /opt/appsmith/editor/index.html mkcert -install # Start echo server diff --git a/deploy/docker/route-tests/run.sh b/deploy/docker/route-tests/run.sh index 7e495482ea..8b604efe67 100755 --- a/deploy/docker/route-tests/run.sh +++ b/deploy/docker/route-tests/run.sh @@ -18,7 +18,7 @@ docker run \ --name ar \ --rm \ "${args[@]}" \ - -e OPEN_SHELL=${OPEN_SHELL-} \ + -e OPEN_SHELL="${OPEN_SHELL-}" \ --volume "$(dirname "$PWD")/fs/opt/appsmith/caddy-reconfigure.mjs:/caddy-reconfigure.mjs:ro" \ --volume ".:/code:ro" \ ar