From c4df9be296ab56a7e5b2aa3f5e2f0ad060e0da96 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Sep 2022 12:14:35 +0200 Subject: docker: add bin to PATH --- Dockerfile | 3 ++- docker-compose.yml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22c9ff7..295b3ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,8 @@ RUN apk add --no-cache tini libgit2 ARG install_dir COPY --from=builder ["$install_dir", "$install_dir"] +ENV PATH="$install_dir/bin:${PATH}" WORKDIR "$install_dir/bin" ENTRYPOINT ["/sbin/tini", "--"] -CMD ["./cimple-server"] +CMD ["cimple-server"] diff --git a/docker-compose.yml b/docker-compose.yml index 44c809c..d6d8460 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,15 +15,15 @@ services: - 5556 worker1: <<: *common - command: ["./cimple-worker"] + command: ["cimple-worker"] depends_on: [server] worker2: <<: *common - command: ["./cimple-worker"] + command: ["cimple-worker"] depends_on: [server] client: <<: *common command: [] depends_on: [server] - entrypoint: ["./cimple-client"] + entrypoint: ["cimple-client"] restart: 'no' -- cgit v1.2.3