From 52801b4de1d63cd01191acf7fcee137977140ec0 Mon Sep 17 00:00:00 2001 From: lexicade Date: Fri, 27 Jan 2023 21:06:30 +0000 Subject: Project init --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab2b91f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +# This file is a template, and might need editing before it works on your project. +FROM python:3.8 + +# Edit with mysql-client, postgresql-client, sqlite3, etc. for your needs. +# Or delete entirely if not needed. +RUN apt-get update && rm -rf /var/lib/apt/lists/* + +WORKDIR /usr/src/app + +COPY ./cogs/ ./cogs/ +COPY ./overlays/ ./overlays/ +COPY ./config/ ./config/ +COPY ./synthy.py ./synthy.py +COPY ./config.ini ./config.ini +COPY ./requirements.txt ./requirements.txt + +RUN pip install --no-cache-dir -r requirements.txt + +ENV discord_bot_token="" +ENV oxford_app_id="" +ENV oxford_app_key="" +ENV db_name="" +ENV db_user="" +ENV db_pass="" +ENV db_host="" +ENV db_schema="" +ENV db_port="5432" + +COPY . /usr/src/app + +CMD python3 synthy.py -- cgit v1.2.3