-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Malith-Rukshan/sdev-branch
Dockerfile Added - For Better Development Experience 🚀
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Use the official Python image as the base image | ||
FROM python:3.9 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the requirements.txt file to the working directory | ||
COPY requirements.txt . | ||
|
||
# Install the dependencies | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
# Copy the main.py file to the working directory | ||
COPY main.py . | ||
|
||
# Run the main.py script | ||
CMD ["python", "main.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "IP Finder Telegram Bot", | ||
"description": "A Telegram bot for finding IP information.", | ||
"env": { | ||
"API_ID": { | ||
"description": "Your API ID for Telegram.", | ||
"required": true | ||
}, | ||
"API_HASH": { | ||
"description": "Your API Hash for Telegram.", | ||
"required": true | ||
}, | ||
"BOT_TOKEN": { | ||
"description": "Your Telegram Bot Token.", | ||
"required": true | ||
}, | ||
"IP_API": { | ||
"description": "Your IPinfo Access Token.", | ||
"required": true | ||
} | ||
}, | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/python" | ||
} | ||
] | ||
} |