diff --git a/Dockerfile b/Dockerfile index a4dade6..af1976d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,5 @@ FROM node:10.15.0 as app -RUN \ - apt -y update && \ - apt -y install moreutils - - WORKDIR /app #wildcard as some files may not be in all repos @@ -19,6 +14,10 @@ RUN npm run compile:all FROM node:10.15.0 +RUN \ + apt -y update && \ + apt -y install moreutils + COPY --from=app /app /app WORKDIR /app diff --git a/entrypoint.sh b/entrypoint.sh index 14773c0..37c3c05 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,5 +2,5 @@ set -o pipefail -inner-entrypoint.sh "$@" | ts +/app/inner-entrypoint.sh "$@" 2>&1 | ts diff --git a/inner-entrypoint.sh b/inner-entrypoint.sh index f1f1dab..54899f2 100755 --- a/inner-entrypoint.sh +++ b/inner-entrypoint.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -x + date echo "Changing permissions of /var/run/docker.sock for sibling containers" ls -al /var/run/docker.sock