diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0dfdc1e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,28 @@ +# Ignore common files generated during the build process +*.pyc +*.pyo +__pycache__/ +*.egg-info/ +*.egg +*.egg-info + +# Ignore development environment files +*.env +*.log +.env +.venv/ +.idea/ +.vscode/ +.cache/ +.coverage +htmlcov/ + +# Ignore scripts +scripts/ + +# Ignore non-essential files and directories +CODE_OF_CONDUCT.md +CONTRIBUTING.md +LICENSE.txt +README.md +requirements-dev.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..efaf70f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# base image for python +FROM python:3.10-alpine3.16 + +# working directory +WORKDIR /app + +# set the required dependencies +COPY requirements.txt requirements.txt + +# install dependencies +RUN pip install -r requirements.txt + +# copy the content of the local src directory to the working directory +COPY . . + +# run the command to start the bot +CMD [ "python3", "-m", "bot"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..0666180 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +version: "3" + +services: + gongo: + container_name: gongo + build: . + image: python:3.10-alpine3.16 + env_file: + - .env