docker build

This commit is contained in:
Shihaam Abdul Rahman 2024-09-21 02:20:24 +05:00
parent 83f9da1ebe
commit 0c54b9cc22
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
4 changed files with 24 additions and 0 deletions

9
.build/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.11-slim
WORKDIR /app
COPY relay.py .
RUN pip install --no-cache-dir aiosmtpd python-telegram-bot
CMD ["python", "relay.py"]

6
.build/compose.yml Normal file
View File

@ -0,0 +1,6 @@
services:
smtp-to-telegram:
build:
context: ../
dockerfile: .build/Dockerfile
image: git.shihaam.dev/shihaam/smtp-to-telegram

2
.env.example Normal file
View File

@ -0,0 +1,2 @@
TELEGRAM_API_KEY=
TELEGRAM_CHAT_ID=

7
compose.yml Normal file
View File

@ -0,0 +1,7 @@
services:
smtp-to-telegram:
image: git.shihaam.dev/shihaam/smtp-to-telegram
restart: always
env_file: .env
ports:
- 2525:2525