Docker(5)

This commit is contained in:
2023-09-09 23:19:07 +08:00
parent c7afdf5b88
commit dc485da319
2 changed files with 10 additions and 8 deletions
+5 -4
View File
@@ -1,12 +1,13 @@
FROM python:3.9-bullseye
ENV telegramtoken None
ENV misskeybot None
ENV telegramtoken="None"
ENV misskeybot="None"
WORKDIR /app
COPY main.py .
COPY requirements.txt ./
RUN pip install pyTelegramBotAPI requests html2text
RUN pip install -r requirements.txt
CMD ["python", "main.py", "$telegramtoken", "$misskeybot"]
CMD ["python", "main.py"]