fix: wrap command in sh -c for proper execution in docker-compose

This commit is contained in:
Space-Banane
2026-01-21 23:05:05 +01:00
parent 66cf67d389
commit 743950c423

View File

@@ -4,7 +4,7 @@ services:
working_dir: /app
volumes:
- ./:/app
command: if [ ! -f .env ]; then echo ".env file not found! Please create one based on .env.example and set your DISCORD_BOT_TOKEN."; exit 1; fi && go mod tidy && go run .
command: sh -c "if [ ! -f .env ]; then echo \".env file not found! Please create one based on .env.example and set your DISCORD_BOT_TOKEN.\"; exit 1; fi && go mod tidy && go run ."
env_file:
- .env