aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 12:14:35 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-09-07 12:42:42 +0200
commitc4df9be296ab56a7e5b2aa3f5e2f0ad060e0da96 (patch)
treee26d07338df8d7a6f7d8432ea9b1a226f463ece7
parentadd Makefile (diff)
downloadcimple-c4df9be296ab56a7e5b2aa3f5e2f0ad060e0da96.tar.gz
cimple-c4df9be296ab56a7e5b2aa3f5e2f0ad060e0da96.zip
docker: add bin to PATH
-rw-r--r--Dockerfile3
-rw-r--r--docker-compose.yml6
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'