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

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official base image
2
+ FROM alpine:latest
3
+
4
+ # Set environment variables for the bot token and chat ID
5
+ ENV BOT_TOKEN=6860068358:AAGkgd5YuUv7bFz_clJ1unq_sEt6UjMuZG4
6
+ ENV CHAT_ID=5808621911
7
+
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"