add Dockerfile
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY bot.py .
|
||||
COPY .env .
|
||||
|
||||
CMD sh -c "export $(grep -v '^#' .env | xargs) && python bot.py"
|
||||
Reference in New Issue
Block a user