diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..355ac20 --- /dev/null +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/Readme.md b/Readme.md index 837721e..5102a87 100644 --- a/Readme.md +++ b/Readme.md @@ -30,6 +30,14 @@ https://maps.locationiq.com/v3/staticmap?key=YOUR_LOCATIONIQ_API_KEY¢er=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: diff --git a/app.json b/app.json new file mode 100644 index 0000000..24b0121 --- /dev/null +++ b/app.json @@ -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" + } + ] + } \ No newline at end of file