docker build
This commit is contained in:
parent
83f9da1ebe
commit
0c54b9cc22
9
.build/Dockerfile
Normal file
9
.build/Dockerfile
Normal 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
6
.build/compose.yml
Normal 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
2
.env.example
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
TELEGRAM_API_KEY=
|
||||||
|
TELEGRAM_CHAT_ID=
|
7
compose.yml
Normal file
7
compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user