Merge pull request #1 from ruanbekker/docker

Add docker example
main
Ruan Bekker 3 years ago committed by GitHub
commit 33b861ec85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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