zuehue commited on
Commit
35a3994
·
verified ·
1 Parent(s): e357450

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -8,5 +8,5 @@ ENV CHAT_ID=5808621911
8
  # Install curl
9
  RUN apk --no-cache add curl
10
 
11
- # Run the curl command directly
12
- CMD curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" -d "chat_id=${CHAT_ID}" -d "text=Hello"
 
8
  # Install curl
9
  RUN apk --no-cache add curl
10
 
11
+ # Run the curl command using shell form
12
+ CMD sh -c 'curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" -d "chat_id=${CHAT_ID}" -d "text=Hello"'