Add docker example

pull/1/head
Ruan Bekker 3 years ago
parent 4d7730712a
commit 58fc57aaf0
  1. 12
      Dockerfile
  2. 10
      docker-compose.yml

@ -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…
Cancel
Save