Skip to content

Commit

Permalink
Merge pull request #4 from Malith-Rukshan/sdev-branch
Browse files Browse the repository at this point in the history
Dockerfile Added - For Better Development Experience 🚀
  • Loading branch information
thejan64go authored Jun 23, 2024
2 parents 2d264b8 + c41227d commit dd05b94
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
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"]
8 changes: 8 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ https://maps.locationiq.com/v3/staticmap?key=YOUR_LOCATIONIQ_API_KEY&center=LATI
```
*Replace `YOUR_LOCATIONIQ_API_KEY`, `LATITUDE`, and `LONGITUDE` with your LocationIQ API key and the geographical coordinates.*

## 🚀 Deployment

Set Environmentals variable before deploy. - [Instructions](#-installation-steps)

[![Deploy with heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/thejan64go/IP-Finder-Bot)
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)

## ⚙️ Installation

To use this bot, you need to have Python installed on your machine along with some specific libraries. Follow the steps below to set up and run the bot:
Expand Down
27 changes: 27 additions & 0 deletions app.json
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"
}
]
}

0 comments on commit dd05b94

Please sign in to comment.