diff --git a/Dockerfile b/Dockerfile index 2de6469..7a9cfa1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:3 WORKDIR /usr/src/app +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["bot.py"] ENTRYPOINT ["python3"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8cf66e2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,4 @@ +version: "3.8" +services: + bot: + build: . diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..062c9a8 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +discord +python-dotenv