docker build

This commit is contained in:
2024-09-21 02:20:24 +05:00
parent 83f9da1ebe
commit 0c54b9cc22
4 changed files with 24 additions and 0 deletions
+9
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
View File
@@ -0,0 +1,6 @@
services:
smtp-to-telegram:
build:
context: ../
dockerfile: .build/Dockerfile
image: git.shihaam.dev/shihaam/smtp-to-telegram
+2
View File
@@ -0,0 +1,2 @@
TELEGRAM_API_KEY=
TELEGRAM_CHAT_ID=
+7
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