From 66596d28a9d4dbebd213615599801fba22c8deb3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 4 Mar 2024 21:46:32 +0200 Subject: [PATCH] default docker to bash --- Dockerfile | 2 ++ docker-compose.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index e647a12f8..a25d9b551 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,4 +46,6 @@ RUN t=$(mktemp) && wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && bash "$t" && EXPOSE 80/tcp +RUN ln -sf /bin/bash /bin/sh + CMD [ "/usr/bin/supervisord", "-c", "/d/supervisord.conf" ] diff --git a/docker-compose.yml b/docker-compose.yml index d313f4262..0fa7b6732 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,6 +24,8 @@ services: redis: container_name: "redis" image: redis + volumes: + - "/bin/bash:/bin/sh" ports: - "6379:6379" logging: @@ -36,6 +38,7 @@ services: image: postgres command: ["postgres", "-c", "log_statement=all"] volumes: + - "/bin/sh:/bin/bash" - "./schema.sql:/docker-entrypoint-initdb.d/00-schema.sql" - "./seed-users.sql:/docker-entrypoint-initdb.d/01-seed-users.sql" - "./seed-badges.sql:/docker-entrypoint-initdb.d/02-seed-badges.sql"