Create Dockerfile
Browse files- 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"
|