From 0f45a47a54f6b30f6df322eabc52039cc71f3450 Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Wed, 26 Feb 2025 23:31:34 +0700 Subject: [PATCH] fix wait-for-it.sh --- docker/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 177a482..a0226e2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-alpine as builder WORKDIR /app -RUN apk add --no-cache tzdata +RUN apk add --no-cache tzdata bash COPY ./package.json . COPY ./yarn.lock . RUN yarn @@ -18,7 +18,8 @@ COPY --from=builder /app/dist ./ COPY --from=builder /app/templates /templates COPY ./docker/wait-for-it.sh . +RUN chmod +x ./wait-for-it.sh EXPOSE 80 -CMD ["node", "./index.js"] +CMD ["/bin/bash", "node", "./index.js"]