parent
4d7730712a
commit
58fc57aaf0
@ -0,0 +1,12 @@ |
|||||||
|
FROM python:3.8-alpine |
||||||
|
|
||||||
|
ENV PYTHONUNBUFFERED 1 |
||||||
|
|
||||||
|
WORKDIR /src |
||||||
|
|
||||||
|
COPY requirements.txt /src/requirements.txt |
||||||
|
RUN pip install -r /src/requirements.txt |
||||||
|
|
||||||
|
COPY basic_greeting_bot.py /src/bot.py |
||||||
|
|
||||||
|
CMD ["python", "/src/bot.py"] |
@ -0,0 +1,10 @@ |
|||||||
|
version: "3.8" |
||||||
|
|
||||||
|
services: |
||||||
|
discord-bot: |
||||||
|
container_name: discord-bot |
||||||
|
build: . |
||||||
|
restart: on-failure |
||||||
|
env_file: |
||||||
|
- .sample_env |
||||||
|
|
Loading…
Reference in new issue