From 8c50e046a3ccce80a75fcb990b37d123dc38a61b Mon Sep 17 00:00:00 2001 From: marat2509 Date: Sun, 25 Feb 2024 02:02:24 +0300 Subject: [PATCH] dockerfile: fix entrypoint start --- nginx/Dockerfile | 2 +- worker/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 00cbce7..59513f4 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -2,5 +2,5 @@ FROM nginx:mainline-alpine WORKDIR /app COPY default.conf /etc/nginx/conf.d/default.conf COPY entrypoint.sh . -ENTRYPOINT ["/app/entrypoint.sh"] +ENTRYPOINT ["sh", "/app/entrypoint.sh"] HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD ["curl", "-s", "--fail", "localhost"] \ No newline at end of file diff --git a/worker/Dockerfile b/worker/Dockerfile index 2b41db3..24c7fbd 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -4,5 +4,5 @@ git php php-curl php-fileinfo php-iconv php-mbstring php-openssl pcre php-simple WORKDIR /app COPY core/ . COPY entrypoint.sh . -ENTRYPOINT ["/app/entrypoint.sh"] +ENTRYPOINT ["sh", "/app/entrypoint.sh"] HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 CMD ["test", "-f", "/app/health.ok"] \ No newline at end of file